Posted by : Unknown
Monday, 15 June 2015
{
public static void main( String args[] )
{
System.out.println( "Welcome to Java Programming!" );
}
}
Output:
Welcome to Java Programming!
********************************************
class print
{
public static void main( String args[] )
{
System.out.print( "Welcome to " );
System.out.println( "Java Programming!" );
}
}
Output:
Welcome to Java Programming!
********************************************
class print
{
public static void main( String args[] )
{
System.out.println( "Welcome\nto\nJava\nProgramming!" );
}
}
Output:
Welcome
to
Java
Programming!
Related Posts :
- Back to Home »
- Example program , Tips »
- How printing function works