title: Does Java have a bounded Collection with removal strategy?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5498865/size-limited-queue-that-holds-last-n-elements-in-java">Size-limited queue that holds last N elements in Java</a>  </p>
  </blockquote>
  
  
  
  <p>Does java include a native class which allows a <strong>maximum number</strong> of elements and if I input one element more, it <strong>automatically removes</strong> an old one (e.g. based on <strong>natural sorting</strong>)?</p>
  
  <p>If not, I can write it myself of course, but I just wanted to ask.</p>