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
Explain spliterator in java8?
What is the tradeoff between using an unordered array versus an ordered array?
What are static initalizers in java ?
What is static synchronization?
what is thread? What are the high-level thread states? : Java thread
What are untrusted applets?
What mechanism does java use for memory management?
What is the super void?
What is a type parameter in java?
In the below example, what will be the output?
Explain the transient field modifier?
Explain about collection interface in java?
Are functions objects in java?
What are the limitations of procedural programming approach?
What is complexity in java?