I need to add elements to an ArrayList queue whatever, but when I call the function to add an element, I want it to add the element at the beginning of the arra
ArrayList
You may want to look at Deque. it gives you direct access to both the first and last items in the list.