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

How do you end a program?

1182


What does this () mean in constructor chaining concept?

1199


Can we split string with in java?

1070


I want to re-reach and use an object once it has been garbage collected. How it's possible?

1073


What type of variable is error flag?

1125


Why do we need wrapper classes?

1118


Which package is used for pattern matching with regular expressions?

1154


Can you have two constructors in java?

1047


What are the different types of multitasking?

1146


Is zero a positive integer?

1143


What is identifier in java?

1172


What is pojo class in java?

1197


What is a treeset class?

1060


What are passing parameters?

1141


what is encapsulation in java? Explain

1174