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

Answer Posted / hema

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


public class CountStringWords {
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 );
}
}
}

Is This Answer Correct ?    20 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of the system class in java?

1048


Are arrays classes in java?

1036


Wha is the output from system.out.println(“hello”+null); ?

1143


Is string a class?

1033


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

987


Explain wrapper classes in java?

993


What's the default access specifier for variables and methods of a class?

1120


what are three ways in which a thread can enter the waiting state? : Java thread

1017


What does compareto () do in java?

998


Is ++ operator is thread safe in java?

957


What is assembly condition codes?

990


What is a boolean output?

965


Explain the meaning of java applet.

1071


What is public/private protected in java?

1041


Can we rethrow the same exception from catch handler?

1124