Hi i am having some issue taking in character array input in the format of the desired input. here is my code : https://ide.codingblocks.com/s/395543
Having trouble taking char array input
char[][] g = new char[n][m];
for (int i = 0; i < n; i++) {
String s = sc.next();
for (int j = 0; j < m; j++) {
g[i][j] = s.charAt(j);
}
}