Question: java Q1[5 pts]: Write a method that takes an integer array and a character to determine whether to return the maximum or the minimum value
Q1[5 pts]: Write a method that takes an integer array and a character to determine whether to return the maximum or the minimum value of the array. If the passed character is T or 'L' then the method should return the maximum. If the passed character is 's' or 'S', then the method should return the minimum. If the passed character is 'e' or 'E', then the method should count the even numbers and return the count. If the passed character is 'o' or '0', then the method should count the Odd numbers and return the count
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
