1. Using the standard class Vector, define a class Our List of lists that implements the interface List Interface, as defined in Listing 10-1 of this chapter. 2. Repeat the previous project, but use...


1. Using the standard class Vector, define a class Our List of lists that implements the interface List Interface, as defined in Listing 10-1 of this chapter.


2. Repeat the previous project, but use the class Array List instead of Vector. Whenever you need a list for any of the following projects, use the class Our List that Project 1 or 2 asks you to define.


 3. Define a class of bags that implements the interface BagInterface, as defined in Listing 1-1 in Chapter 1. Use an instance of the class Array List to contain a bag’s entries. Then write a program that adequately demonstrates your new class. Note that you might have to handle exceptions thrown by methods of Array List.


4. Repeat Project 3, but instead define a class of sets that implements the interface Set Interface, as defined in Listing 1-5 in Chapter 1. Recall that a set is a bag whose entries are distinct.



Nov 27, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here