错误写法:
int[] nums = new int[10];
Arrays.sort(nums, (x,y)->(y-x));
正确写法:
Integer[] nums = new Integer[10];
Arrays.sort(nums, (x,y)->(y-x));
错误写法:
int[] nums = new int[10];
Arrays.sort(nums, (x,y)->(y-x));
正确写法:
Integer[] nums = new Integer[10];
Arrays.sort(nums, (x,y)->(y-x));