Friday, July 25, 2014

Java Programming to print the Text

To print the text (i.e. letters,numbers etc) program is as follows
System.out.println("Hello world !");
This code must be written inside the main class . After the complete of the program just click on the run button and then program will be run .


The output will be :
                      Hello world ! 

In above example both project name and class name is same i.e. helloworld 

No comments:

Post a Comment