For this part, we create and run an application called Check00A.java from within Eclipse.
- Do the first three steps of Lab L1.2 in the textbook on p.38.
- To create the app Check00A.java, you need to create a class.
- To do this, select File -> New -> Class. This brings up the "New Java Class" dialog.
- In the "Name:" field, type Check00A. (IMPORTANT! Type carefully - the name should not be check00a, checkooA, etc)
- Under "Which method stubs would you like to create?", check "public static void main(String[] args)". Click the Finish button.
- You may now use the editor to add statements to the body of the method called main in Check00A.
- To run Check00A, select Run -> Run As -> Java Application.
- The green circle with the right triangle arrow in the menubar is the shortcut.
- You can mouse over it and hover and the tool tip "Run Check00A.java" will appear. The output will appear in the console.