Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Q1- When learning a new language, we first learn to output some message. Here, we'll start with the famous "Hello World" message.
- You are given a function to complete. Don't worry about the ins and outs of functions, just add the command (System.out.print("Hello World")) to print Hello World.
- Ans- static void printHelloWorld()
- {
- // your code here
- System.out.println("Hello World");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement