title: Ring Buffer in Java
body: <p>I have a streaming time series, of which I am interested in keeping the last 4 elements, which means I want to be able to pop the first, and add to the end. Essentially what I need is a <a href="https://en.wikipedia.org/wiki/Circular_buffer" rel="noreferrer"><strong>ring buffer</strong></a>.</p>
  
  <p>Which Java Collection is the best for this? Vector?</p>