//  Welcome1.java
// A first program in Java

public class Welcome1 {
   public static void main( String args[] )   { System.out.println( "Welcome to Java Programming!" );}
}

--------------------------------------

//  Welcome2.java
// Printing a line with multiple statements

public class Welcome2 {
   public static void main( String args[] )
   {
  System.out.print( "Welcome to " );
  System.out.println( "Java Programming!" );
   }
}

------------------------------------
//  Welcome3.java
// Printing multiple lines with a single statement

public class Welcome3 {
   public static void main( String args[] )
   {
      System.out.println( "Welcome\nto\nJava\nProgramming!" );
   }

}