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
List down the methods and interfaces of collection class in java.
What is the purpose of encapsulation?
What is locale?
What's the purpose of using break in each case of switch statement?
Can we overload the main() method?
What is collection sort in java?
What is int argc char * argv?
What is java util function?
Can we override constructors in java?
What is autoboxing and unboxing?
Why we use methods in java?
Explain the difference between call by refrence and call by value?
Is array serializable java?
What is a flag variable?
if u open login & logout ,how can udisplay the timelogin & logout members ?