printarray(ary[][], row, col);
public void printarray(char[][] t, int o, int l){
for(int q=0; q< t.length ;q++){
for(int h=0; h < t[o][l].length ; h++){
check=t[o][l];
System.out.println(check);
Printable View
printarray(ary[][], row, col);
public void printarray(char[][] t, int o, int l){
for(int q=0; q< t.length ;q++){
for(int h=0; h < t[o][l].length ; h++){
check=t[o][l];
System.out.println(check);
What is the rest of your code? Also can you put your code inside code brackets?
Check that all of your code is inside of a method.