Thursday, 10 November 2016

Java program to print "HelloWorld".

Java program to print "HelloWorld".

public class MyFirstJavaProgram 
{

   /* This is my first java program.
    * This will print 'Hello World' as the output
    */

   public static void main(String []args) 
{
      System.out.println("Hello World"); // prints Hello World
   }
}