O'Reilly logo

Just Java™ 2, Fifth Edition by Peter van der Linden

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required