Loop to find the count of minimum frequency in the hash - map
for ( Map . Entry < Character , Integer > x : Dict . entrySet ( ) ) { if ( x . getValue ( ) == minfrequency ) countminFrequency += 1 ; } Map < Character , Integer > mapper = new HashMap < > ( ) ; int indi = 0 ;