import java.util.Arrays;
import java.util.Scanner;
public class InputBasics
{
public static void main(String[] args)
{
Scanner scr = new Scanner(System.in);
int rows = scr.nextInt(); //n
int cols = scr.nextInt(); //m
int[][] grid = new int[rows][cols];
for (int r=0; r<rows; r++)
{
for (int c=0; c<cols; c++)
{
grid[r][c] = scr.nextInt();
}
}
//process the data array here
System.out.println(Arrays.deepToString(grid));
}
}
|