StringBuilder
is another class that provides methods to manipulate strings. Look in the StringBuilder
class API for information on the reverse
method and use the method to reverse a sample string. Then use the toString
method to obtain the string in the StringBuilder
object.