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 the difference between reader/writer and inputstream/output stream?
Explain importance of inheritance in java?
What lambda means?
What are the fileinputstream and fileoutputstream?
How do you implement singleton class?
What is the null?
What is slash r?
String Reverse in Java...!
What do u mean by wrapper Class? What do u mean by Jvm... How do u change JVM for other OS? Or No need to Change ...? its like tricky
What is polymorphism in java? What are the kinds of polymorphism?
What classes of exceptions may be caught by a catch clause in java programming?
What best practices should you follow while writing multithreaded code in java?