Challenge 1: Find the Maximum Value
In this challenge, you will figure out how to find out the maximum value stored in an Integer Array.
We'll cover the following
Problem statement #
Write a method named findMaxVal() to find the maximum integer value stored in an Array of any size.
Input #
- The input to the method will be an array passed as a parameter.
Output #
- As an output the method will return the maximum value found in the array.
Sample input & output #
Input: {4, 10, 12, 17, 11}
Output: 17
Pictorial representation #
Get hands-on with 1400+ tech skills courses.