//And so we have ArrayList> list = new ArrayList>(words); // The entire class groaned while this line of code was being typed. EntryComparator eC = new EntryComparator(); // We couldn't just have code going around comparing things, we'd better have an EntryComparator making sure that Entry comparison doesn't get out of control! Collections.sort(list, eC);       // God help us if "sorting" is allowed to work on it's own, maybe we should name it "execute."