So all you need is read a text file, split it in words, and end up with a sorted array of words?
Or perhaps you are interested in the
unique words in your document? In that case, a Set is more appropriate.
If you do want unique words, but not a Set, try
And so forth. The combination of regular expressions and the Collections framework is good fun
although still not as much as Perl.
- Peter