title: Java Array Size fixed
body: <p>in <code>Java</code> I want to create an <code>array</code> with a fixed size, so I can add new Elements and the first Element drops out.</p>
  
  <p>For example:</p>
  
  <p>The <code>array</code> with the size of <code>5</code>: <code>{1,2,3,4,5}</code> then I add "<code>6</code>" and the "<code>1</code>" drops out so I have <code>{2,3,4,5,6}</code>, the I add "<code>7</code>" and the "<code>2</code>" drops out: <code>{3,4,5,6,7}</code> ...</p>
  
  <p>So I want to add a new Element and remove the first Element. Is there an easy way to do it or do I have to implement it myself?</p>
  
  <p>Can I do this with an <code>ArrayList</code> and just remove the first <code>Object</code>? 
  If I remove the first <code>Object</code> of an <code>ArrayList</code>, will the second Object automatically become the first object?</p>
  
  <p>Thanks</p>