定义一个二维数组,其中所包含的一维数组具有两个元素 Arrays.sort(intervals,new Comparator<int[]>)(){ @Override public int compare(int