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 are the main concepts of oops in java?
What exactly is java?
What is function declaration?
What state does a thread enter when it terminates its processing in java programming?
What is the difference between multitasking and multithreading in Java
Why is java so popular?
Implementations of set interface?
Variables used in a switch statement can be used with which datatypes?
State the difference between strings and arrays.
what state does a thread enter when it terminates its processing? : Java thread
What is an argument java?
What is a vector in java?
What restrictions are placed on method overriding in java programming?
Is it possible for a yielded thread to get chance for its execution again?
What is an example of a keyword?