The following curriculum unit contains examples, handouts, and assignments geared towards teaching middle school students how to program in the Java language.
Example | Description | Learn about | Download |
| Create an interactive keyboard key counter | applet, integers, keyDown | javaTutorialEx1.zip |
| Ask if they know the password | boolean, if, keyDown | javaTutorialEx2.zip |
| Make your own surprise button | setColor, integers, mouseDown | javaTutorialEx3.zip |
| Move a smiley face around | drawOval, drawArc, mouseMove | javaTutorialEx4.zip |
| Make your own surprise button | setColor, integers, mouseDown | javaTutorialEx5.zip |
| Using java's Button object | Button, if, action() | javaTutorialEx6.zip |
| Using multiple Buttons | Button, if, action() | javaTutorialEx7.doc |
| Using java's TextField object | setText, TextField, getText | javaTutorialEx8.zip |
| Using java's TextArea object | TextArea, TextField, getText | javaTutorialEx9.zip |
| Convert between units of measurement | Java's built-in Math operations | javaTutorialEx10.doc |
Handout | Description | Learn about | Download |
| Internet search for programming definitions | OOP, JVM, variables, etc. | handout1.doc |
| Answers on how to get started | compiler, .java source | handout2.doc |
| Add an applet to a webpage | <applet> tag, HTML | handout3.doc |
| Review of 1-5 material | variables, java methods | handout4.doc |
Assignment | Description | Learn about | Download |
| Program electronic flashcards | Examples 1-5 material | mp1.doc |
| Artificial intelligent Question Applet | Examples 1-9 material | mp2.doc |
| Programming a Game | All previous examples | mp3.doc |
Day I. Introduction to Java
Day II. Application Basics
Day III. Introduction to Applets
Day IV. Applets in more detail
Day V. Advanced Topics