thank you @GoToLoop and @kfrajer sorry about the code, i’m really new in java programming btw i already tried your code and it works, but still got error in the resultClass am i need it in an array or something
int max = 0;
for(int i=0; i<4; i++){
if(numInClass[i] > max){
max = numInClass[i];
resultClass = [i] + 1;
}
}
println ("\nMax: ",max);
return resultClass;
}