Java program to remove the elements which appear strictly less than k times from the array .
import java . util . HashMap ; class geeks { public static void removeElements ( int [ ] arr , int n , int k ) {