代码如下:
package com.zzh;import edu.princeton.cs.algs4.StdOut;import edu.princeton.cs.algs4.StdRandom;public class Test { public static void main(String[] args) { // TODO Auto-generated method stub int m=4,n=5; int[][] a=new int[m][n]; int[][] b=new int[n][m]; a=initial(m,n); for(int i=0;i