title: Java syntax error on tokens, misplaced constructs - array initialization
body: <p>I have the following code in Java 5:</p>
  
  <pre><code>for (Object o : theList) {
      for (int k=0; k&lt;theList.size(); k++)
          int[][] m = new int[7][7];
      m = theList.get(k);
      for (int i=0; i&lt;7; i++) {
          for (int j=0; j&lt;7; j++) {
              System.out.println(m[i][j]);
          }
          System.out.println();
      }
      System.out.println();
  }
  ...
  }
  </code></pre>
  
  <p>On the line with</p>
  
  <pre><code>int[][] m = new int[7][7]
  </code></pre>
  
  <p>it is telling me "Syntax error on token(s), misplaced construct(s)". Any idea what I'm doing wrong?
  Thanks.</p>