how to find the 2nd highest number in array in ruby code example Example: ruby find biggest int in array array = [1, 2, 3, 4] puts array.max #=> 4