Queue Implementation Using Array And Arraylist In Java