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 exactly is java?
Why is java so popular?
What is difference between hashset and hashmap in java?
What is predicate in java?
What is methods and methodology?
What is the purpose class.forname method?
What is isa relationship?
How to sort list of list in java?
Why are lists ordered in java?
When can an object reference be cast to an interface reference in java programming?
What is a war file?
Is arraylist dynamic in java?
Explain the overview of UDP messaging.
What is private public protected in java?
How do you declare a destructor in java?