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 

How to create project by using netbeans IDE

The steps for create project are as follows
  1. Go to file
  2. Click on new project or simply Ctrl+Shift+N
  3. Choose java
  4. Click next
  5. Name your Project
  6. Create main class if necessary
  7. Right click on the project which you created
  8. Create new Class and write program