Class IntRangeClient
java.lang.Object
it.unimi.di.prog2.e14.IntRangeClient
A class to test int ranges.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidPrints a description of an iterator on integers.
-
Constructor Details
-
IntRangeClient
private IntRangeClient().
-
-
Method Details
-
printIterationsFirstLast
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 benull.
-