判断二维数组是否是单调数组
import java.util.Arrays;
/*
* 判断某个二维数组是否是单调二维数组
*/
public class ArrayDemo {
public static void main(String[] args) {
int[][] arr = {
{
1,2}, {
10,15,100,19}, {
13,16,17,20,20,30,40}, {
108,107,106,105}, {
}};
printArr(arr);
System.out.println(isDull2Array(arr));
}
public static void printArr(int[][] arr) {
for (int i = 0; i < arr.length; i