Class IntSetClient

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

public class IntSetClient extends Object
A class to test ArrayIntSet and ListIntSet.
  • Constructor Details

    • IntSetClient

      private IntSetClient()
      .
  • Method Details

    • main

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

      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 determines the implementation to use: a for ArrayIntSet, anything else for ListIntSet.

      Parameters:
      args - if the set should be ordered.