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
What is the importance of static variable?
Implementations of set interface?
Which collection is ordered in java?
Why is string class considered immutable?
Is java free for commercial?
What do you know about java?
What will be the default values of all the elements of an array defined as an instance variable?
Does treeset allow null in java?
How do you classify Dialog Box?
What is the length of a string?
What is the major difference between linkedlist and arraylist?
explain the concept of virtual method invocation in polymorphism in detail?
What an i/o filter?
What is t type java?
I want to persist data of objects for later use. What is the best approach to do so?