Class MaxIntSetClient

java.lang.Object
it.unimi.di.prog2.h17.MaxIntSetClient

public class MaxIntSetClient extends Object
Test class for MaxIntSet.
  • Constructor Details

    • MaxIntSetClient

      private MaxIntSetClient()
      .
  • Method Details

    • main

      public static void main(String[] args)
      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.