Question: the method provided is, static int maxOdd(int[] nums){ } Please help!! We have declared a static method called maxOdd with an int[] parameter nums, which
the method provided is,
static int maxOdd(int[] nums){
}
Please help!!
We have declared a static method called maxOdd with an int[] parameter nums, which you can assume to be non-empty. TASK: Fill in the body of maxOdd such that it returns the largest odd number in nums. If no odd numbers exist, return O. Sample Input: 2 3 4 5 6 Sample Output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
