Write a java program to get a string of words and print the numbers of each word count in descending order
Answer Posted / 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 View All Answers
How many bits are in a sentence?
Is a case study a method or methodology?
What classes of exceptions may be caught by a catch clause in java programming?
What is module with example?
How java enabled high performance?
How we can generate random numbers in java?
Can we sort set in java?
Explain what is encapsulation?
What are functions in java?
What is the purpose of interface?
What is a substring of a string?
What java is used for?
What is byte [] in java?
What does flag mean in java?
What is nullpointerexception in java?