Class BoundedIntQueueClient

java.lang.Object
it.unimi.di.prog2.s10.BoundedIntQueueClient

public class BoundedIntQueueClient extends Object
A class to exercise a BoundedIntQueue.
  • Constructor Details

    • BoundedIntQueueClient

      private BoundedIntQueueClient()
      .
  • Method Details

    • main

      public static void main(String[] args)
      Tests some methods of BoundedIntQueue.

      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.