title: Problems with pop() using Deque in Java
body: <p>I've encountered a strange issue using a <code>Deque</code>.</p>
  
  <p>I've reformatted my code twice now, and both forms has resulted in the same issue.</p>
  
  <p>Whether i <code>push()</code> a <code>String[]</code> or an <code>ArrayList&lt;String&gt;</code> to the <code>Deque</code> (formatted appropriately for one or the other), it <code>pop()</code> 's as an Object. I cannot seem to use what so ever.</p>
  
  <p>When i <code>push()</code> a <code>String[]</code> and then <code>pop()</code>, i cannot access indices. When i <code>push()</code> an <code>ArrayList&lt;String&gt;</code> and then <code>pop()</code>, i cannot use <code>get()</code> on it.</p>
  
  <p>When i <code>push()</code> an element, it then <code>pop()</code> 's as something else. It says </p>
  
  <blockquote>
    <p>"___ required, but Object found".</p>
  </blockquote>
  
  <p>I don't understand why, or how i can use <code>Deque</code> successfully.</p>