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

What is arrays sort in java?

0 Answers  


What is data string?

0 Answers  


What is null statement?

0 Answers  


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

0 Answers  


What are the interfaces defined by Java.lang package?

1 Answers  


What is another word for methodology?

0 Answers  


Explain when we should make an instance variable private.

0 Answers  


What is the difference between I ++ and ++ I in java?

0 Answers  


Is there any use of an abstract class which has no methods and no attributes?

1 Answers   Wipro,


Give the difference between the println method and sqrt method?

0 Answers  


Explain constructors and types of constructors in java.

0 Answers  


Is 0 an irrational number?

0 Answers  


Categories