正常的实现方法
public class Test{
private static int[] arr;
public static int subArray(){
if(null == arr){
return 0;
}
int index = 1;
int c = 0;
int[] num1 = null;
List<Integer> list = new ArrayList<Integer>();
for(int i = index; i < arr.length; i++){
if(arr[i-1] <= arr[i]){
index++;
}else{
num1 = Arrays.copyOfRange(arr, c, index);
int max =