HOMEWORK 5-------CS332

1) Study Chapter 7 of the textbook (ALL).

2) Modify SelectiveVector.java so that it accepts a LIST of types (not just one type). This means that if SelectiveVector's current list of types is:(Cat, Dog),you can add a cat OR a dog to the vector but if you try to add a mouse it will throw an exception.

Provide a method to reset this list at any time; when you reset the list,you must throw out all objects whose type is NOT in the new list.