Package it.unimi.di.prog2.h17
Class MaxIntSetClient
java.lang.Object
it.unimi.di.prog2.h17.MaxIntSetClient
Test class for
MaxIntSet
.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MaxIntSetClient
private MaxIntSetClient().
-
-
Method Details
-
main
Reads a series of instructions and prints the resulting set from their execution.After instantiating an empty set, it reads a series of integers from the input stream. If they are positive, it adds them to the set; if they are negative, it removes the corresponding absolute value. If the integer is 0, it prints the set.
- Parameters:
args
- not used.
-