Storing the frequency of each consonant
if ( freq_consonants . has ( s . charAt ( i ) ) ) { freq_consonants . set ( s . charAt ( i ) , freq_consonants . get ( s . charAt ( i ) ) + 1 ) } else { freq_consonants . set ( s . charAt ( i ) , 1 ) ; } } }