java get Chars

getChars() StringBuffer Example

To convert StringBuffer contents to an array of characters with getChars() StringBuffer. Sometimes, it may be needed to copy a few characters of string content of StringBuffer to an array or to copy the complete StringBuffer into an array. Here, getChars() method comes into usage. What Java API says about getChars() StringBuffer: public synchronized void …

getChars() StringBuffer Example Read More »