December 2001
Intermediate to advanced
1136 pages
24h 12m
English

This chapter contains a nontrivial Java program annotated with a running commentary. The program source appears on the CD accompanying this book, so you can look at it without the annotation, and you can try compiling and running it without typing it in.
The program generates anagrams (letter rearrangements). You give it a word or phrase, and it comes back with all the substring combinations that it can find in the dictionary. It uses a wordlist as a dictionary (there’s one of those on the CD, too), and you can also ...
Read now
Unlock full access