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!
I get 13 errors :(
including line9:twoDArray[][] not a statement, ; expected, illegal start of expression, all a few times each.
Code i tried:
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);
}
}