| CIT 594 Fourth Quiz Spring 2002, Dave Matuszek |
Name __________________________________________
|
null? Why or why not?s1, s2, and s3
have been declared to be of type Set. Write the Java instructions
that will:s3 to the union of s1 and s2.s3 to the intersection of s1 and
s2.s3 to the set difference s1 - s2.Object obj is an element of the set s1.books is 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.ListIterator have
that an Iterator does not have?