File(s) |
Description |
Topic(s) |
Die.java & DieTest.java |
Die Class Design Example |
OO design & documentation, simple random
number generation & use and GUI I/O. |
Arm.java & Main.java |
Arm Class Design Example |
OO design & documentation, biomechanics
example and console I/O. |
WeightConverter.java & Main.java |
Weight Converter Class Design
Example |
OO design & documentation, GUI I/O and Decimal Format class. |
BetterTime.java |
Improved Elapsed Time Class |
OO design & documentation, the system.nanoTime() method, console I/O
(using of Scanner class for input & PrintStream. printf()
method for formatted output). |
RanTest.java |
Random Number Generator
Demonstration |
The Random class, selection (if) and repetition (for) statements,
arrays, file I/O using Formatter class. |
ObjParms.java |
Object Parameter & Javadoc Example |
Implications of Java's parameter passing and return behaviors with respect
to primitive and object data. Also, javadoc style comments. A bit over-the-top, but very complete. |
RainFall.java |
Array Usage and File I/O Example |
The Scanner class for file input, the Formatter class for file output and
storing information in arrays. |