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 a instance variable?
what is object slice?
What are abstract classes and anonymous classes?
Define nashorn in java8.
What is singleton class example?
What is entry in java?
Can you access the private method from outside the class?
What is volatile keyword in java
What is a java developer salary?
What is array length in java?
What is public static void main?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
Explain different ways of creating a thread. Which one would you prefer and why?
Can a static method be overridden in java?
Is 0 true or false?