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

Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

2230


placement papaers of spring computing technology

1022


Differentiate between run time error and syntax error.

567


when should you use stringbuilder class in a program?

522


What is parsing in grammar?

554






What do you mean by local class?

511


Can we declare register variable as global?

505


What is the primary benefit of encapsulation?

554


When do we use synchronized methods in java?

582


Can list have duplicates in java?

519


Can we increase array size dynamically in java?

504


Is alive and join method in java?

537


What is the maximum size of arraylist in java?

492


What are the 6 mandatory procedures for iso 9001?

527


What are the drawbacks for singleton class?

514