静态排序最大最小值

public class a {
public static void main(String args[]) {
int a[] = {84, 40, 16, 3, 10, 49, 28, 76, 94, 70};
java.util.Arrays.sort(a);
System.out.print("max=" + a[a.length - 1]);
System.out.print("min=" + a[0]);
}
}

  

猜你喜欢

转载自www.cnblogs.com/Sulater/p/12904405.html
今日推荐