Write a program to find second largest number in an array.
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 ...
rajaitarun.hashnode.dev1 min read