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 a java program to get a string of words and print the numbers of each word count in descending order

Answers were Sorted based on User's Feedback



Write a java program to get a string of words and print the numbers of each word count in descending..

Answer / karthick

package com.subex.exm;




/**
* Author-Hema
* => Program that prints the nos. of each word count of
String in Descending order!!!
*/


public class subexExp {
public static void main(String[] args) {
String s="HemaLovesMilind";
System.out.println(s);
for(int i=s.length();i>0;i--)
{
//System.out.println(i);
System.out.println(s.charAt(i-1));
}
}
}

Is This Answer Correct ?    2 Yes 7 No

Post New Answer

More Core Java Interview Questions

Can a java program have 2 main methods?

0 Answers  


What are serialization and deserialization?

0 Answers  


Difference between JVM and JRE?

3 Answers   Amdocs,


What is the default size of load factor in hashing based collection?

0 Answers  


What are measurable parameters?

0 Answers  


Why is it called a string?

0 Answers  


what is use of session tracking ?with example?

1 Answers   Photon,


How to make a class immutable?

15 Answers   Bosch, TSYS,


What is the latest java version?

0 Answers  


Why is java not 100% pure oops?

0 Answers  


What are parsers? Dom vs sax parser.

0 Answers  


When object is created and destroyed?

0 Answers  


Categories