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 does java enable high performance?
Which is easier netbeans or eclipse?
What is type safety in java?
Detail discussions on JVM, memory management and garbage collector.
what is the constructor and how many types of constructors are used in java?
What is package private scope in java?
What are meta-annotations?
How large is a boolean?
What is protected access modifier?
Can we write class inside a class in java?
What is the program compilation process?
Explain the difference between extends thread vs implements runnable in java?
What are the types of strings?
Explain the meaning of java applet.
what is synchronization and why is it important? : Java thread