import java.util.*; /** * An example that uses a parameterized collection of a parameterized * collection * * @author Prof. David Bernstein, James Madison University * @version 1.0 */ public class Courses { /** * The entry point * * @param args The command line arguments (ignored) */ public static void main(String[] args) { Hashtable> offerings; Vector course; offerings = new Hashtable>(); // Sections of CS139 course = new Vector(); course.add("Harris, J.A."); course.add("Harris, N.L."); offerings.put("CS139", course); // Sections of CS239 course = new Vector(); course.add("Bernstein"); course.add("Harris, N.L."); offerings.put("CS239", course); // Sections of CS446 course = new Vector(); course.add("Bernstein"); course.add("Fox"); offerings.put("CS446", course); } }