An implementation of a Queue data structure in Java