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
What are different access specifiers in java? Explain
what is synchronization? : Java thread
Can you extend main method in java?
What is the difference between double and float variables in java?
Can we execute java program without main method?
What is the use of inner class?
What is a text string?
Why set is used in java?
What is functional interface in java?
Can final class have constructor?
What is the collections api in java programming?
Why to use nested classes in java?
Why do we need singleton?
What is formatted output?
Can inner class extend any class?