Sets

This program is an integer set problem. You need to read in two sets of data, and display the union, intersection, and difference of the two sets. For this assignment, you are going to store the sets in linked lists.

The program will read from stdin. The first line will be set a, and the second set b. You need to do some basic error checking on the input. Use exception handling to do this.

The definition of a set for this problem is : ordered integers with no duplicate values.

You will want to make copies of your sets to accomplish this. The java way to do this is to impliment a clone method that does this.

here are sample runs from mine

This is due on July 28th.

The Goals