Hi,
This is ravi i have a question like this i have string
"UNDERSTAND" now i want to count the letters how many times
it occures.i.e from the above string the out put should be
like this U-1,N-2,D-2,E-1,R-1,S-1,T-1,A-1.
how can i achieve this
Thnaks in advance for your response ..
Answer Posted / dilip
Actually what i think is take integers from a-z and
initialize each with 0
then take the string & using charAt & equalsIgnoreCase
increment the respaective values & then print the same.....
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How many bytes is string in java?
can used Protected Class outside Function.?
What is singleton class and how can we make a class singleton?
How do you sing an Applet ?
What is the relationship between class and object?
Can a private method be declared as static?
Explain the pointers in Java?
What is boolean keyword in java?
What is a two-pass assembler?
What are static initalizers in java ?
Difference between method overloading and overriding.
What is a values collection view ?
How can we break singleton in java?
What is the applet security manager, and what does it provide?
What is method in java ?