Java-Reverse and Replace

reverse You can reverse the characters with in a StrngBuffer object using reverse() method.¬†This method returns the reversed object. replace You can replace one set of characters with another set inside a StringBuffer object by calling replace(int startIndex, int endIndex, String str). The substring being replaced is specified by the indexes startIndex and endIndex. Thus, … Read more…