In the Java programming language, collections are objects that group multiple
elements into a single unit. Collections let you store, retrieve, and manipulate
data, and transmit data from one method to another.
RunArrayList.java
extends AbstractList to store elements in slots, with each slot representing a range of contiguous element indices where all indices in the slot refer to the same element.
For supporting information see Using Collections with JDK 1.2.
FindDups.java takes words in its argument list and prints out any duplicate words, the number of distinct words, and a list of the words with duplicates eliminated.
For supporting information see The Java Tutorial Continued: Collections.
FindDups2.java finds the words in the argument list that occur once, that occur more than once, and does not print out duplicate words repeatedly. For supporting information see The Java Tutorial Continued: Collections.
Name.java compares names and returns a value indicating the comparison results: negative integer for less than, zero for equal to, or positive integer for greater than. For supporting information see The Java Tutorial Continued: Collections.