this nifty snippet allows to accept and print the 2d array:
for (int i = 0; i < rowSize; i++) {
for (int j = 0; j < columnSize; j++) {
myArray[i][j] = sc.nextInt();}}
System.out.println(Arrays.deepToString(myArray));
this nifty snippet allows to accept and print the 2d array:
for (int i = 0; i < rowSize; i++) {
for (int j = 0; j < columnSize; j++) {
myArray[i][j] = sc.nextInt();}}
System.out.println(Arrays.deepToString(myArray));