Class IntSetsClient

java.lang.Object
it.unimi.di.prog2.h18.IntSetsClient

public class IntSetsClient extends Object
A class to test IntSet and OrderedIntSet.
  • Constructor Details

    • IntSetsClient

      private IntSetsClient()
      .
  • Method Details

    • main

      public static void main(String[] args)
      Tests some methods of IntSet and OrderedIntSet.

      This method reads integers from standard input and inserts them into a set, then it emits the set size and elements in the standard output. The first parameter tells weather the set should be ordered or not.

      Parameters:
      args - if the set should be ordered.