Objective: The objective of this lab is to get you some experience in using generic classes, enums, foreach loops and the Java class library.
The Java class library: The Java Class Library is a set of dynamically loadable libraries that Java application programs can call at runtime. Like other standard code libraries, Java class library provides the programmer a well-known set of functions to perform common tasks, such as maintaining lists of items or performing complex string parsing. For Java 1.5 or later, some generic classes and generic interfaces are included in the Java class library. Examples:
import java.util.*;
public class Stack<E extends Vector<E { public Stack(); // constructor public Boolean empty(); public E peek(); public E pop(); public E push(E item);
}
public class LinkedList<E extends AbstractSequentialList<E