reverse() StringBuffer Example

java.lang.StringBuffer class comes with many utility methods to manipulate string. One of the method is reverse() used to reverse the contents of the buffer. After this method call, original buffer itself gets effected. Note: reverse() is not a method of String; applying on string raises compilation error. What Java API says about reverse() StringBuffer: public …

reverse() StringBuffer Example Read More »