+ 4
How to find 3rd largest no from an arrray? In java.
int[ ] arr = { 1,2,3,4,5}; output =3rd largest no is - 3
1 Answer
+ 2
Just like Mirielleđ¶ said, probably the simplest way is to import java.util.Arrays and use the Arrays.sort method and target index[2]