Scratch.java. Various simple examples
of the behavior of variables and the results of expressions.
RocketInitial.java.
An unstructured program that prints out a diamond, an X, and a rocket.
RocketStructured.java.
A structured program that prints out a diamond, an X, and a rocket.
XsAndDiamonds.java.
The code from class used to draw different sized Xs and Vs.
FToCConverter.java A very
simple class that converts a given temperature in degrees Fahrenheit to its
equivalent temperature on the Celsius scale.
BaseballStats. A
simple program that calculates various baseball batting statistics.
Coin Flipping. A
program that asks the user how many times to simulate flipping a coin. It then
reports how many heads, how many tails, and what the longest streak of flips
was.
Target. A
program that simulates shooting at a target.
FileOps. A program with
some examples of working with files.