Solution : Algorithm : Find the maximum number of the array. Replace the maximum number with the smallest integer value. Find the maximum again. import java.util.Scanner; public class secondMax { static int findMax(int [] arr){ int ...

Markdown supported · ⌘↵ to post
No responses yet.