Adding the Queue Operation implemented in Java using Arrays