Write program to print Hello World and print each character
address in that string and print how many times each
character is in that string?
Ex: H: 0 & 1
e:1 & 1
l :2,3,8 & 3
o:4,6 & 2
w:5 & 1
r: 7 & 1
d 9 & 1
Answer Posted / noor
Little change in the code
add this for loop
for (int x = i - 1; x >= 0; x--)
instead of
for (int x = i - 1; x > 0; x--)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference in between java class and bean?
What is a Hash Table? What are the advantages of using a hash table?
How do you ensure that n threads can access n resources without deadlock?
How would you format a date in java? I.e. In the ddmmyyy format?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
What is parseint?
What is a parameter in a function?
Mention a package that is used for linked list class in java.
Explain the difference between protected and default access.
Why is logger singleton?
What is protected in java?
Why use string handling in Java?
What is the latest java version?
What is lambda in java?
What does nullpointerexception mean?