Chapter 12. Practical Example Explained

Practical Example Explained

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 ...

Get Just Java™ 2, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.