|
Queues Example
By Steven Smith
Creating Queue by adding 'Steve'. Queue: Steve | Size: 1 | Full?: False
Adding 'Rachel', 'Amy', 'Mike', 'Bob' to the queue... Queue: Steve,Rachel,Amy,Mike,Bob | Size: 5 | Full?: True
Now, since forceEntry is set to True, when we add 'Dawn' to the queue, Steve should be kicked out. Queue: Rachel,Amy,Mike,Bob,Dawn | Size: 5 | Full?: True
That's pretty much it for this example!
|
|