Printing a line of text with multiple statements. - Java Language Basics

Java examples for Language Basics:Hello World

Description

Printing a line of text with multiple statements.

Demo Code

public class Main 
{
   // main method begins execution of Java application
   public static void main(String[] args)
   {/*  w  w  w. j av  a2 s  . c om*/
      System.out.print("Welcome to ");
      System.out.println("Java Programming!");
   } 
}

Result


Related Tutorials