title: CircularFIFOQueue : Using get method
body: <p>I am trying to implement a CircularFifoQueue in java.</p>
  
  <pre><code>Queue&lt;List&lt;String&gt;&gt; rssififo = new CircularFifoQueue&lt;List&lt;String&gt;&gt;(2);
  </code></pre>
  
  <p>I am getting consfused on how to use the get method of the CircularFifoQueue API. The API states </p>
  
  <pre><code>public E get(int index)
  Returns the element at the specified position in this queue.
  Parameters:
  index - the position of the element in the queue
  Returns:
  the element at position index
  Throws:
  NoSuchElementException - if the requested position is outside the range [0, size)
  </code></pre>
  
  <p>However i cannot seem to be able to use <code>rssiinfo.get(index)</code>. The only way get method pops up in my editor (android studio) is if i use <code>rssiinfo.element().get(0)</code>.</p>
  
  <p>However the element() method  only returns the first element of the queue. How can i access an element at an arbitrary location in the queue? </p>