Package it.unimi.di.prog2.s10
Class BoundedIntQueueClient
java.lang.Object
it.unimi.di.prog2.s10.BoundedIntQueueClient
A class to exercise a
BoundedIntQueue
.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BoundedIntQueueClient
private BoundedIntQueueClient().
-
-
Method Details
-
main
Tests some methods ofBoundedIntQueue
.Reads a list of integers from the standard input; if a positive number is read, it is added to a bounded queue of size 10; if a negative number is read, it is dequeued and emitted on the standard output. When the input terminates, the queue is emitted on the standard output.
- Parameters:
args
- not used.
-