title: Push a 2-dimensional array of integers onto a stack in Java
body: <p>I have 2-dimensional array of integers array[i][j] (a for loop inside a for loop) and I want to push the i and j values onto a 2-dimensional stack.</p>
  
  <p>I have defined the stack as follows:</p>
  
  <p><code>Stack&lt;Integer[][]&gt; stack = new Stack&lt;Integer[][]&gt;()</code>;</p>
  
  <p>How can I push i and j onto the stack?</p>
  
  <p>I've tried:</p>
  
  <pre><code>stack.push([i][j]);
  </code></pre>
  
  <p>but Eclipse spits out:</p>
  
  <blockquote>
    <p>Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved
    compilation problem:      Syntax error on token "(", Expression expected
    after this token</p>
  </blockquote>