Java program to find frequency of each unique alphabet in a string

preview_player
Показать описание
#techlearners #java #string
Input -
str="techlearners"

Output
t=1 e=3 c=1 h=1 l=1 a=1 r=2 n=1 s=1

Logic
Input string in str
convert to lower case
find length of string
Loop i = 'a' to i less then equal 'z'
count=0
Loop j = 0 to j less then len
count++
if count is not equal to zero
display i and count

TECHLEARNERS BY NEERAJ SAXENA
Рекомендации по теме