We can
reverse the characters in the StringBuffer using reverse .
The
reverse method reverses the StringBuffer object on which it is called.StringBuffer reverse() The following example program demonstrates reverse() :
StringBufferreverse Demo CODE class StringReverseExample OUTPUT Hello World DESCRIPTION This program shows how to THINGS TO TRY
Dependent Topics :
|