import java.util.Scanner;public class Array2public static void main(String args)int i=0,j=0;int p=5,q=5;int array;Scanner reader=new Scanner(System.in);System.out.println(“请输入二维数组矩阵,每输入一个数按回车确认 “);System.out.println(“输入数组的第一维数:“);int m=reader.nextInt();p=m;System.out.println(“输入数组的第二维数:“);int n=reader.nextInt();q=n;array=new intpq;for(i=0;im;i+)for(j=0;jn;j+)System.out.println(“第“+(i+1)+“行,第“+(j+1)+“列“);int b=reader.nextInt();arrayij=b;for(i=0;ip;i+)for(j=0;jq;j+)System.out.printf(“%8d“,arrayij);System.out.println(n);