starting at index reverse()reverse and return the string setcharat( ,ch)set the character at index in to be ch charat( )return the character at index in error conditions occur when the index is out of the bounds of the indices of the string with the exception of the charat methodmost of the methods of the string class are not immediately available to stringbuffer object in java fortunatelythe java stringbuffer class provides tostring(method that returns string version of swhich can be used to access string methods example consider the following sequence of operationswhich are performed on the mutable string that is initially abcdefghijklmnop"operation append("qrs""abcdefghijklmnopqrsinsert( ,"xyz""abcxyzdefghijklmnopqrsreverse("srqponmlkjihgfedzyxcbasetcharat( ,' '"srqponmwkjihgfedzyxcba pattern matching algorithms