/*
计算数组中的最大值
*/
public class ArrayDemo_5{
public static void main(String[] args){
int[] arr = {5,12,6,4,8,9,3,225,6,41,2};
int max = arr[0];
for(int i=1;i<arr.length;i++){
if(max<arr[i]){
max = arr[i];
}
}
System.out.println(max);
}
}
