+ 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
2 Réponses
+ 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]