Class IntRangeClient

java.lang.Object
it.unimi.di.prog2.e14.IntRangeClient

public class IntRangeClient extends Object
A class to test int ranges.
  • Constructor Details

    • IntRangeClient

      private IntRangeClient()
      .
  • Method Details

    • printIterationsFirstLast

      public static void printIterationsFirstLast(Iterator<Integer> it)
      Prints a description of an iterator on integers.

      Prints the total number of iterations, if such number is positive, it also prints the first iterated value and, if it is different from it, the last one.

      Parameters:
      it - the iterator, mast not be null.