import java.util.Scanner;
public class Maze {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int rows = 0;
int cols = 0;
String arrayLine = "";
int counter = 0;
rows = sc.nextInt();
cols = sc.nextInt();
arrayLine = sc.next();
char[][] array = new char[rows][cols];
for(int r=0; r<rows; r++){
for (int c=0; c<cols; c++){
array[r][c] = arrayLine.charAt(counter);
counter ++;
}
}
System.out.println(array);
System.out.println();
}
}
The document I'm bringing in the information from is:
8
7
000000011111S0000000110101111010101100010110111011010E00
The output I'm getting it when i run it is [[C@252f0999
Help please, I'm just starting to learn java!