Class SetOperations

java.lang.Object
  |
  +--SetOperations

public class SetOperations
extends java.lang.Object

An driver program used to test out the Set Abstract Data Type written as part of this assignment. The user can use the commands below to perform operations on Set objects.

Commands:
(C)omplement (Set)
(E)quals (Set) (Set)
(U)nion (Set) (Set)
(M)ember (Element) (Set)
(D)ifference (Set) (Set)
(P)owerset (Set)
(I)ntersection (Set) (Set)
E(X)it


Constructor Summary
SetOperations()
           
 
Method Summary
static void main(java.lang.String[] args)
          The main operating method for this program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetOperations

public SetOperations()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws IllegalElementException,
                        java.io.IOException
The main operating method for this program. Data is obtained from the user and is placed into sets which are next operated upon and the results are displayed immediately after input is complete.
Throws:
IllegalElementException - Indicates that a number was entered outside of the acceptable range for a Set object.
java.io.IOException - Indicates an error reading in from the keyboard.
java.lang.NumberFormatException - Indicates that an entry for numeric data was not numeric.
OutOfMemoryError - Indicates that there isn't sufficient memory for creating the Set objects.