Calculate The Second Highest Frequency


/ Published in: Java
Save to your folder(s)

Calculate The Second Highest Frequency
Write a method that accepts a String and returns the character with the second highest frequency. For example "aabbbc" would return 'a'. If the string contains spaces, they can be disregarded from the count.

URL: http://java.dzone.com/articles/thursday-code-puzzler-second

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.