public static void main(String[] args) {
int[] a = {5,2,33,31,54};
Dome01 test = new Dome01();
System.out.println(test.a(a));
}
public int[] and(int[] a){
Arrays.sort(a);
return a; }
请问错在哪?
System.out.println(Arrays.toString(test.and(a)));
public static void main(String[] args) {
int[] a = {5,2,33,31,54};
Dome01 test = new Dome01();
System.out.println(test.and(a));
}
public int[] and(int[] array){
Arrays.sort(array);
return array;
}
}
上面打错,重新输入。