Java Reference
In-Depth Information
5 . Since FixedQueue implements the ICharQ interface, which defines the two queue
methods get( ) and put( ) , ICharQ will need to be changed to reflect the throws
clause. Here is the updated ICharQ interface. Remember, this must be in a file by it-
self called ICharQ.java .
6 . Now, compile the updated ICharQ.java file. Then, compile FixedQueue.java ,
QueueFullException.java , QueueEmptyException.java , and QExcDemo.java .
Finally, run QExcDemo . You will see the following output:
Search WWH ::




Custom Search