Java program to find frequency of a character in a string

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

Output
Number of e is = 3

Logic
Input string in str
find length of string
input character in ch
count=0
Loop i = 0 to i less then len
count++
display count

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