Source of Welcome2.java


  1: // Fig. 2.3: Welcome2.java
  2: // Printing one line of text with multiple statements.
  3: 
  4: public class Welcome2 
  5: {
  6:    // main method begins execution of Java application
  7:    public static void main( String args[] )
  8:    {
  9:       System.out.print( "Welcome to " );
 10:       System.out.println( "Java Programming!" );
 11: 
 12:    } // end method main
 13: 
 14: } // end class Welcome2
 15: 
 16: /**************************************************************************
 17:  * (C) Copyright 1992-2005 by Deitel & Associates, Inc. and               *
 18:  * Pearson Education, Inc. All Rights Reserved.                           *
 19:  *                                                                        *
 20:  * DISCLAIMER: The authors and publisher of this book have used their     *
 21:  * best efforts in preparing the book. These efforts include the          *
 22:  * development, research, and testing of the theories and programs        *
 23:  * to determine their effectiveness. The authors and publisher make       *
 24:  * no warranty of any kind, expressed or implied, with regard to these    *
 25:  * programs or to the documentation contained in these books. The authors *
 26:  * and publisher shall not be liable in any event for incidental or       *
 27:  * consequential damages in connection with, or arising out of, the       *
 28:  * furnishing, performance, or use of these programs.                     *
 29:  *************************************************************************/