Answer Posted / indumathi
public class StringReverseExample {
public static void main(String[] args)
{
String string=args[0];
String reverse = new StringBuffer
(string).reverse().toString();
System.out.println("\nString before
reverse:"+string);
System.out.println("String after
reverse:"+reverse);
}
}
| Is This Answer Correct ? | 9 Yes | 5 No |
Post New Answer View All Answers
Which is better arraylist or vector?
Implementations of set interface?
What is the method overriding?
What is the difference between a static and a non-static inner class in java programming?
Explain spliterator in java8?
What is the synonym of string?
What is the internal implementation of set in java?
Is there is any difference between a scrollbar and a scrollpane?
How do you get the length of a string in java?
What is a Hash Table? What are the advantages of using a hash table?
What are pass by reference and pass by value?
Explain when classnotfoundexception will be raised ?
Can we sort hashmap in java?
Why are global variables used?
What is the use of flag?