title: How can I create a simple 4x3 two dimensional array in Java?
body: <p>I've got it down in C++, but Java is proving more challenging to me. Here's what i have. I simply want it to have 4 rows and 3 columns initialized to 1-12 and to print it to the screen. Are my errors apparent to you? Thanks!</p>
  
  <p>I get 13 errors :(      </p>
  
  <blockquote>
    <p>including line9:twoDArray[][] not a statement, ; expected, illegal
    start of expression, all a few times each.</p>
  </blockquote>
  
  <p>Code i tried:</p>
  
  <pre><code>import java.util.*;
  
  
  class twoDimensional array
  { public static void main(String args[])
  {
  int[][] twoDArray = new int[4][3];
  
  twoDArray[][]={{1,2,3},{4,5,6},{7,8,9},{10,11,12}};
  
  System.out.print(twoDArray.toString);
  
  
  }
  }
  </code></pre>