import java.util.Arrays;
public class ArrayTest {
public static void main(String[] args) {
int[] array = new int[]{23,-12,4,7,9,34,76};
Arrays.sort(array);
System.out.println("最小的数:" + array[0]);
}
}
public class aa {
public static void main(String[] args) {
int[] a=new int[]{33,1,3,5,12,4,77};
int max=0;
for(int i=0;i
max=a[i];
}
}
System.out.println("max=="+max);
}
}