Saturday, October 13, 2012

First Program

When we completed installed JDK and IDE, we can now start do our first program which "Hello Giovanni".
Just below below steps;
  1. Start netbeans IDE, >>Start>>All Programs>>Netbeans>>Netbeans version
  2. Go to File Menu>>New Project>> Choose Java in Categories >> Java Application in Projects >> Click Next >> Just enter any Project Name, let say "HelloGiovanni" >> the click Finish
  3. In the main window, you can see HelloGiovanni.java, and the codes are also there. Now, we will show the word "Hello Giovanni Ricohermoso".
  4. After the line "// TODO code application logic here", just write this code. "System.out.println("Hello Giovanni Ricohermoso");
  5. Then we will run the program, just go to the left part of the IDE, you can see the Projects, just right click HelloGiovanni, then select run.
  6. Output Window will show and "Hello Giovanni Ricohermoso" also appear.
  7. Congratulations!! 
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package HelloGiovanni;

/**
*
* @author Giovanni
*/
public class HelloGiovanni{

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Hello Giovanni Ricohermoso");
}
}

No comments:

Post a Comment