Set up folder structure and test Eclipse

1. Create a folder structure for course materials

2. Eclipse basics: Creating a project

  1. Create a Java project: click an icon in upper left, right below File. Type a name, then Finish
  2. Create a package: click src folder, then click package icon right below Project.  Name the package name 'test1' (without quotes)
  3. Create a class: Click the package, then click the Class icon (green circle with C).  Type in 'HelloWorld' (again, without quotes) in the 'Name' field.

3. Writing, compiling and executing the program

After hitting Finish, Eclipse provides you with a skeleton code.  Below is the complete program.  Type in (i.e., add) any part that was not in the skeleton.  Pay close attention to the syntax, especially upper/lower cases, 
{ } and ;   
package test1;

public class HelloWorld { 
  public static void main(String[] args) { 
    System.out.println("Hello, world!"); 
  }
} 

To execute and run the code, you can select “Run” at the top menu and select “Run” in the drop-down list.