Recap Challenge #2
Lesson 15 of 16 in Coddy's Strings and Arrays in Java course.
Challenge
MediumWrite a function named secondLargest that gets an array of integers and returns the second largest number in the array.
Try it yourself
class SecondLargest {
public static int secondLargest(int[] nums) {
// Write code here
}
}