text: Java program to find all elements in array which have at - least two greater elements itself .
code: import java . util . * ; import java . io . * ; class GFG { static void findElements ( int arr [ ] , int n ) {