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
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 |
What is purpose of find feature?
We can write any Java Logics in our JSP. Then why we are using servlets(Controller Layer) to interact with the DAO ?
What is a nested class?
What are the 7 types of characters?
What is data type in computer?
Explain the difference between static and dynamic binding in java?
What are the standards to place package statement within a source code file?
Is object a data type in java?
Difference between throw and throws?
What is java’s garbage collected heap?
What is callablestatement? How you can call stored procedure to pass in parameter?
How do you remove duplicates from an array in java?