Thursday, May 22, 2014

Program Hello World Java #1

Text Editor yang digunakan adalah Netbeans IDE,
1. Terlebih dahulu buka Netbeans pilih Menu File -> New Project.
2. Pilih kategori project Java dan Java Application, lalu Next
3. Project Name : Program1, lalu centang Create Main Class : helloWorld.Program1
helloWorld : Main Class
Program1 : Java Class
4. Berikut Listing programnya :
  1. package helloWorld;
  2. /**
  3.  *
  4.  * @author yani-pc
  5.  */
  6. public class Program1 {
  7.     /**
  8.      * @param args the command line arguments
  9.      */
  10.     public static void main(String[] args) {
  11.         // TODO code application logic here
  12.         System.out.println("Hello World !");
  13.     }
  14.    
  15. }
Run, Klik kanan pada Java Claas > Run File (F6)
Hope this was hepful.

Next Lesson #2

No comments:

Post a Comment