静态排序最大最小值

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]);
}
}

  

posted @ 2020-05-17 11:23  苏先生呀  阅读(166)  评论(0)    收藏  举报