CodePug’s Tutorials for Learning Java Programming

The following curriculum unit contains examples, handouts, and assignments geared towards teaching middle school students how to program in the Java language.

Examples

Example Description Learn about Download
1
Create an interactive keyboard key counter applet, integers, keyDown javaTutorialEx1.zip
2
Ask if they know the password boolean, if, keyDown javaTutorialEx2.zip
3
Make your own surprise button setColor, integers, mouseDown javaTutorialEx3.zip
4
Move a smiley face around drawOval, drawArc, mouseMove javaTutorialEx4.zip
5
Make your own surprise button setColor, integers, mouseDown javaTutorialEx5.zip
6
Using java's Button object Button, if, action() javaTutorialEx6.zip
7
Using multiple Buttons Button, if, action() javaTutorialEx7.doc
8
Using java's TextField object setText, TextField, getText javaTutorialEx8.zip
9
Using java's TextArea object TextArea, TextField, getText javaTutorialEx9.zip
10
Convert between units of measurement Java's built-in Math operations javaTutorialEx10.doc

Handouts

Handout Description Learn about Download
1
Internet search for programming definitions OOP, JVM, variables, etc. handout1.doc
2
Answers on how to get started compiler, .java source handout2.doc
3
Add an applet to a webpage <applet> tag, HTML handout3.doc
4
Review of 1-5 material variables, java methods handout4.doc

Assignments

Assignment Description Learn about Download
1
Program electronic flashcards Examples 1-5 material mp1.doc
2
Artificial intelligent Question Applet Examples 1-9 material mp2.doc
3
Programming a Game All previous examples mp3.doc

Five Day Agenda

Day I. Introduction to Java

Day II. Application Basics

Day III. Introduction to Applets

Day IV. Applets in more detail

Day V. Advanced Topics

Last modified: 02/03/2020