JAVA Tips

(001) Example for If statement and for loop

for(int i=1;i < inputArray.length;i++){
if(inputArray[i] > maxValue){
                                    maxValue = inputArray[i];
}
}

No comments:

Post a Comment