int test[]=new int[]{4,2, 1,5, 1,6,2,6,23,98 };
int max = 0;
int sum = 0;
for(int I = 0; I < test the length; i++){
if(test[I]& gt; Max) {
max = test[I];
}
sum+= test[I];
}
system . out . println(" max "+max);
system . out . println(" and "+sum);
system . out . println(" average "+(float)sum/(float)test . length);
}