AQueueClient - S while(in.hasNext()){ try{...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 import java.util.* public class AQueueClient { p public static void main(String[] args){ Scanner in = new Scanner( AQueue<Float> cliQue = new AQueue<Float>(5) A System.out.println("Enter values to be entered into the Queue:")
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: S while(in.hasNext()){ try{ cliQue.enqueue(in.nextFloat()) } catch(InputMismatchException e){ } } while(!cliQue.isEmpty()){ System.out.print(cliQue.dequeue()+" ") } } }...
View Full Document

This lab report was uploaded on 04/21/2008 for the course CSC 103 taught by Professor Franklin during the Spring '07 term at Cal Poly.

Ask a homework question - tutors are online