Here i am using three simple methods to find out the maximum and minimum of the array. In java we don't have any inbuilt method to find out the max and min of an array. But we have a sort method using that we can find out the max and min with one statement.
- Using the Simple Iteration method.
- Using the Sort method, sorting the array and the first element contains the min value and the last element contains the max value.
- Finally the method for Simple recursion method, but that uses a Ternary operator.