Displaying a Single Line of Text with Multiple Statements
// Welcome2.java
// Printing a line of text with multiple statements.
public class Welcome2 {
// main method begins execution of Java application
public static void main( String args[] )
{
System.out.print( "Welcome to " );
System.out.println( "Java Programming!" );
} // end method main
} // end class Welcome2
Output : Welcome to Java Programming
// Printing a line of text with multiple statements.
public class Welcome2 {
// main method begins execution of Java application
public static void main( String args[] )
{
System.out.print( "Welcome to " );
System.out.println( "Java Programming!" );
} // end method main
} // end class Welcome2
Output : Welcome to Java Programming
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home