How can you reverse a string?

Answer Posted / patil abhijeet

Use String buffer
StringBuffer stb = new StringBuffer(string)
stb.reverse()

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by javabeans?

616


Why volatile is used in java?

532


how does the run() method in runnable work? : Java thread

516


How do you escape in java?

581


Is map ordered in java?

537






What is the difference between path and classpath variables?

532


Is void a type?

585


Can we start a thread twice in java?

511


Can java hashmap have duplicate keys?

511


Name few java.lang classes introduced with java 8 ?

539


Can we write a class without main method in java?

487


Is null a keyword in java?

558


What are the four versions of java?

547


What does the “final” keyword mean in front of a variable? A method? A class?

547


what is the final keyword denotes in java?

586