Casey Rounseville 11-10-ArrayLists

Java allows us to chain methods together - the two previous lines could be written as one line:
word=getWords.next().toLowerCase();

The effect is the same, but the more compact version is usually easier to read.