title: Java ArrayList how to add elements at the beginning
body: <p>I need to add elements to an <code>ArrayList</code> queue whatever, but when I call the function to add an element, I want it to add the element at the beginning of the array (so it has the lowest index) and if the array has 10 elements adding a new results in deleting the oldest element (the one with the highest index).</p>
  
  <p>Does anyone have any suggestions?</p>