Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How do you do math powers in java?

1005


Which is faster set or list in java?

971


What is the buffer limit?

978


what is the significance of listiterator in java?

1022


Write a java program to print fibonacci series?

906


Differentiate between overriding and overloading cases?

1039


How to create packages in java?

890


What is the use of optional ?

980


What are the advantages and disadvantages of reference counting in garbage collection?

966


java Technical questions asked by JPMC

4991


Why pointers are not used in java?

1044


What is the difference between the paint() and repaint() methods in java programming?

1129


Difference between object instantiation and construction ?

1007


Can I learn java without any programming experience?

979


What is static import?

1090