Java code to largest and second largest elements in array

2Shares