CS152-Java Weekly Notes
Week 2 CS152 Prof. Ingber
JAVA!
- Step 1: Using the java compiler.
Review the class
examples.
You should be able to access your class lists on line by the end of the week.
Lab:
- The 12 Unix Commands - review if necessary.
Unix reference page
-
Review the programming cycle
- create source file (filename.java) with editor
- javac filename.java
- java filename
- Sun's First
cup of Java has a really good visual reminder of this process.
-
Move slowly through this process, explaining the common mistakes. We want students
walking away feeling comfortable with this process.
- Have students use emacs to create, compile, and run a simple java
program, as described in this week's homework
assignment.
- Remind students that their class must have
the same name as their file. You may speicify what you want your students
to name their files if you want to.
- Make sure they know what a hardcopy is and how to print one in the ESC pod.