Answer Posted / narayanan
public class reverse {
public static void main(String args[]){
String s="malayalam";
StringBuffer sb=new StringBuffer();
int k=s.length();
for (int i = k-1; i >-1; i--) {
sb.append(s.charAt(i));
}
System.out.println(sb);
}
}
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is OOP Language?
What is the covariant return type?
What is visibility mode?
What are synchronized blocks in java?
What is module with example?
what r advatages of websphere? & how to deploy?
what is meant wrapper classes?
What is Java Reflection API? Why it’s so important to have?
I don’t want my class to be inherited by any other class. What should I do?
What do you mean by constructor?
What is the hashcode () and equals () used for?
List two java ide’s?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
What are computer functions?
When is the finalize() called? What is the purpose of finalization?