Advertisement
Shekhar777

Java Start Coding

Oct 19th, 2020
723
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. Q1- When learning a new language, we first learn to output some message. Here, we'll start with the famous "Hello World" message.
  2. 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.
  3. Ans- static void  printHelloWorld()
  4. {
  5.    // your code here
  6.    System.out.println("Hello World");
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement