java
java
***
FAQ
***
Q: What if there are multiple occurrences of the maximum value in the array?
A: The function should return the first occurrence of the maximum value found in
the array.
**********
Test Cases
**********
*/
package PartB;
}
}
} else {
max = Integer.MIN_VALUE;
}
return max;
}