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 |
Which is fastest collection in java?
Why javac is not recognized?
What is function declaration?
wht is customised exception?
1 Answers Logica CMG, Novell, Prudential,
can any one tell me what is advantage of encapsulation
Explain public static void main(string args[]) in java.
What is stored procedure. How do you create stored procedure ?
What is OOPS Concept?
explain different ways of using thread? : Java thread
Where pragma is used?
What is module in oop?
How to create an instance of a class if the class has private constructor?