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 does sprintf return?
Why Java is not pure Object Oriented language?
How does sublist works in java?
Can we use both this () and super () in a constructor?
What is a dot notation?
What is the main use of java?
What are implicit objects in java?
What is the purpose of static keyword in java?
What is the impact of declaring a method as final?
Which java collection does not allow null?
How do you end a program?
When should you make a function static?
Give the difference between the println method and sqrt method?
What are desktop procedures?
Explain the difference between hashmap and hashtable in java?