//Array2D.java public class Array2D { public static void main(String[] args) { int rows = Integer.parseInt(args[0]); int cols = Integer.parseInt(args[1]); //declare and construct a 2D array. int[][] arr2d = new int[rows][cols]; //sizes could be constants fill_with_junk(arr2d); display(arr2d); } public static void fill_with_junk(int[][] A) { //Fill with random numbers for (int i=0; i