|CIT 594 Fourth Quiz
Spring 2002, Dave Matuszek
null? Why or why not?
s3have been declared to be of type
Set. Write the Java instructions that will:
s3to the union of
s3to the intersection of
s3to the set difference
s1 - s2.
Object objis an element of the set
booksis a Collection of some sort, write code to (1) get an iterator for
books, and (2) use the iterator to print out every item in this collection.
ListIteratorhave that an
Iteratordoes not have?