Get all characters from a string with their number

Posted by terence6 on Stack Overflow See other posts from Stack Overflow or by terence6
Published on 2010-05-30T23:51:26Z Indexed on 2010/05/31 0:02 UTC
Read the original article Hit count: 176

Filed under:
|
|
|

How in Java can I get list of all characters appearing in string, with number of their appearances ? Let's say we have a string "I am really busy right now" so I should get :

i-2, a-2, r-2, m-1 and so on.

© Stack Overflow or respective owner

Related posts about java

Related posts about string