Показать частоту каждой буквы в строке [закрыто]JAVA

Программисты JAVA общаются здесь
Гость
Показать частоту каждой буквы в строке [закрыто]

Сообщение Гость »


Given a string "ABADA", how can I return the int array [1,1,2,1,3] that shows the frequency of the corresponding letter?

I've tried to solve this, but it ends up accumulating the occurrence count in one cell instead of separately like shown above. Any thoughts?


Источник: https://stackoverflow.com/questions/780 ... n-a-string

Вернуться в «JAVA»