Returns the current String representation and clears this CharArray. @return a String containing the characters in this instance.
()
| 2033 | /** Returns the current String representation and clears this CharArray. |
| 2034 | * @return a String containing the characters in this instance. */ |
| 2035 | public String toStringAndClear () { |
| 2036 | String string = toString(); |
| 2037 | clear(); |
| 2038 | return string; |
| 2039 | } |
| 2040 | |
| 2041 | /** Trims this CharArray by removing characters less than or equal to a space from the beginning and end. */ |
| 2042 | public CharArray trim () { |