title: What is the Java equivalent of C++ deque?
body: <p>in C++ all I had to do was </p>
  
  <pre><code>#include &lt;queue&gt; -&gt; including
  queue&lt;int&gt; a; -&gt; defining
  a.push(1); -&gt;using
  </code></pre>
  
  <p>but in java I found very difficult to use simple deque
  what should I do...?
  more specifically,
  How should I code to simply do the same steps 
  as I did in C++; including, defining, using.</p>
  
  <p>even more specifically,
  I want to make a deque so that I can
  add any integer in the deque at front or back.
  and print whole numbers in that deque by the size of the deque </p>