练习敲代码速度,编写一小串代码求最值:
package 练习1;
public class one {
public static void main(String[] args) {
System.out.println("one");
int[] arr = {10,20,50,70,200,90};
int max = arr[0];
for(int i = 0;i<arr.length;i++) {
if(arr[i]>max) {
max = arr[i];
}
}
System.out.println(max);
}
}
标签:arr,int,max,每日,System,打卡,out From: https://www.cnblogs.com/yunbianshangdadun/p/17157970.html