Here is your score for Assignment 7.

Score: TBD

Let me know if you have any questions regarding your score. And let me know if you want a copy of an example implementation for the assignment.

Regards,
Jade

Grading Guidelines


Test Results for Assignment 7

Part1 — Linked List Queue

javac -Xlint:all *.java
--> EXIT CODE: 0 <--
java ChengJade7
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
apple
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
banana
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
cherry
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'apple'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'banana'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'cherry'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
quit
--> EXIT CODE: 0 <--
java ChengJade7
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
apple
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
apple
Offer returned 'false'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
banana
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
banana
Offer returned 'false'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'apple'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'banana'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'null'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'null'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
quit
--> EXIT CODE: 0 <--
java ChengJade7
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
apple
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
null
Offer returned 'false'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
banana
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'apple'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'banana'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'null'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
quit
--> EXIT CODE: 0 <--
java ChengJade7
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
apple
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
banana
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
cherry
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
durain
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
eggplant
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
fuji apple
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
grape
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
honeydew
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
indian berry
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
jasmine
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
kiwi
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
lime
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'apple'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'banana'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'cherry'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'durain'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
apple
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
banana
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
cherry
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
durain
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
eggplant
Offer returned 'false'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
fuji apple
Offer returned 'false'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'eggplant'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'fuji apple'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'grape'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'honeydew'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'indian berry'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'jasmine'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'kiwi'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'lime'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'apple'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'banana'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'cherry'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'durain'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'null'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'null'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'null'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
quit
--> EXIT CODE: 0 <--

Part2 — Array Queue

javac -Xlint:all *.java
--> EXIT CODE: 0 <--
java ChengJade7
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
apple
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
banana
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
cherry
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'apple'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'banana'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'cherry'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
quit
--> EXIT CODE: 0 <--
java ChengJade7
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
apple
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
apple
Offer returned 'false'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
banana
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
banana
Offer returned 'false'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'apple'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'banana'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'null'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'null'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
quit
--> EXIT CODE: 0 <--
java ChengJade7
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
apple
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
null
Offer returned 'false'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
banana
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'apple'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'banana'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'null'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
quit
--> EXIT CODE: 0 <--
java ChengJade7
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
apple
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
banana
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
cherry
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
durain
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
eggplant
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
fuji apple
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
grape
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
honeydew
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
indian berry
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
jasmine
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
kiwi
Offer returned 'false'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
lime
Offer returned 'false'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'apple'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'banana'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'cherry'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'durain'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
apple
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
banana
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
cherry
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
durain
Offer returned 'true'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
eggplant
Offer returned 'false'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
fuji apple
Offer returned 'false'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'eggplant'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'fuji apple'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'grape'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'honeydew'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'indian berry'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'jasmine'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'apple'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'banana'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'cherry'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'durain'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'null'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'null'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'null'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'null'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
poll
Poll returned 'null'.
You may choose one of the following options:

 1) 'quit' - quits the program.
 2) 'null' - adds a null String to the queue.
 3) 'poll' - polls the next String from the queue.
 4) Anything else is inserted into the queue.

Your option: 
quit
--> EXIT CODE: 0 <--
Valid HTML 4.01 Valid CSS