The statement inside your inner for loop should be:
arraytwo[i][j] = inarray[i][j];
You index an array using the same syntax whether you're reading from it or writing to it. (charAt
is a method you'd call on a String
, not an array.)
Also, you don't need the line
String row = inarray.;
There's a syntax error on that line anyway.