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
How do you do math powers in java?
Which is faster set or list in java?
What is the buffer limit?
what is the significance of listiterator in java?
Write a java program to print fibonacci series?
Differentiate between overriding and overloading cases?
How to create packages in java?
What is the use of optional ?
What are the advantages and disadvantages of reference counting in garbage collection?
java Technical questions asked by JPMC
Why pointers are not used in java?
What is the difference between the paint() and repaint() methods in java programming?
Difference between object instantiation and construction ?
Can I learn java without any programming experience?
What is static import?