For this u need 2 things
1.The Java SE Development Kit 6 (JDK 6)
2.The NetBeans IDE
- First u need to create a new project in net beans
- File->New project
- select the java application as the project type.
- In the Project Name field, type
Hello World App
. - In the Create Main Class field, type
helloworldapp.HelloWorldApp
. - Click finish.
- Type the code
// TODO code application logic here
with
System.out.println("Hello World!"); // Display the string
Compile the program
Run->Build Main project
Run the program
Run->Run Main Projeect
You will get the output as above if u r successfully run the program. Dadaa thats ur first java pgm!!
its a good start..keep it up!
ReplyDelete