Posted by : Unknown Monday, 15 June 2015


class print 
{
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!

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Translate

Popular Post

Total Pageviews

Blog Archive

- Copyright © Learning Java Program - Powered by Blogger -