A First Program in Java: Printing a Line of Text
// Welcome1.java
// A first program in Java.
public class Welcome1 {
// main method begins execution of Java application
public static void main( String args[] )
{
System.out.println( "Welcome to Java Programming!" );
} // end method main
} // end class Welcome1
Output: Welcome to Java Programming!
// A first program in Java.
public class Welcome1 {
// main method begins execution of Java application
public static void main( String args[] )
{
System.out.println( "Welcome to Java Programming!" );
} // end method main
} // end class Welcome1
Output: Welcome to Java Programming!
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home