Class IntSetsClient

java.lang.Object
it.unimi.di.prog2.h18.refactored.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, OrderedIntSet and PreallocatedIntSet.

      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 which implementation to use.

      Parameters:
      args - if the set should be ordered.