Demotration of a Queue in Java