title: Convert from Queue to Array
body: <p>I want to change a queue containing numbers and operators into an ArrayList. I am coding in Java.</p>
  
  <p>Currently my Queue is defined as follows:</p>
  
  <pre><code>Queue outputQueue = new LinkedList();
  </code></pre>
  
  <p>The queue currently contains the following data:</p>
  
  <pre><code>[1, 9, 3, /, 4, 3, -, 2, /, *, +]
  </code></pre>
  
  <p>I wish to do this mainly so i can use RPN to calculate the result of the calculation, and i need to be able to index elements in the array/</p>
  
  <p>Is there a way to do this?</p>
  
  <p>Thanks in advance for any help :)</p>