Question:
What will this code produce?
public class FindMaxSample {
public static void main(String[] args) {
//starting loop
int[] numbers = {1,2,3,5,7};
//target
int max = numbers[0];
//arrange loop
for(int i=0; i<numbers.length; i++) {
//condition
if(numbers[i] > max) {
max = numbers[i];
}
|