public class test {
public static void main(String[] args) {
int values [] = new int[]{18,62,68,82,65,9};
int max=values[0];
for(int each:values){
max=(each<max)?max:each;
}
System.out.println("最大值"+max);
}
}
how2j循环题
最新推荐文章于 2024-05-16 17:45:10 发布