Java and Netbeans – Lesson 1

1. Getting Started with Netbeans and JAVA

Please download the above PDF for Lesson One on our introduction to Java and Netbeans.


package firstapp;
/**
 *
 * @author jcampbell
 */
public class FirstApp {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
       String UserInput;
       System.out.print("What is your name? ");
       UserInput=System.console().readLine();
       System.out.println("Hello "+UserInput);
    }
    
}