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 |
Why char array is preferred over string for storing password?
How big is a pointer?
what questions are been asked ??? for interview in apti
What is java beans?
What is the difference between object oriented programming language and object based programming language?
Explain the different forms of polymorphism?
did interface can implementation method ? i know its not possible but my interviewer said its possible ..but how..? any one have idea ???
what is daemon thread and which method is used to create the daemon thread? : Java thread
Why is string class considered immutable?
Objects or references which of them gets garbage collected?
Define the term string pool?
Can we use both this () and super () in a constructor?