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
What is constructor chaining and how is it achieved in java?
How to store image in arraylist in java?
how to create multithreaded program? Explain different ways of using thread? : Java thread
Explain the public class modifier?
What is meant by nested loop?
What is java abstraction with example?
Is Java a dying language?
What is wrapper class html?
What does split function do in java?
What is the difference between a choice and a list?
What is string and its types?
What is vector?
Explain how hashmap works?
Is arraylist an object in java?
What is an class?