Hello World java

  1. /*

  2. Java Hello World example.

  3. */

  4.  

  5. public class HelloWorldExample{

  6.  

  7. public static void main(String args[]){

  8.  

  9. /*

  10.   Use System.out.println() to print on console.

  11.   */

  12. System.out.println("Hello World !");

  13.  

  14. }

  15.  

  16. }

  17.  

  18. /*

  19.  

  20. OUTPUT of the above given Java Hello World Example would be :

  21.  

  22. Hello World !

  23.  

  24. */

0 comments: