Sample code using array lists to count the frequency of the last word
of input (assuming no punctuation, words separated by
whitespace): broken
solution,
corrected LastWordFrequency.java
A sample word list is also available.
LineCounter.java: prompt user
for file (using a JFileChooser) and count the non-empty
lines. This illustrates using the file
chooser dialog and reading data.