Hello.java
: a basic "hello,
world" program.
LineCount.java
: illustrates
writing a program to read from stdin or from a file using
a BufferedReader
.
- Serialization example: reading, writing objects
using the Serialization interface; also illustrates using
command-line arguments.
- Money.java: illustrates why using
floats for money is bad (and doubles help for small numbers only)