Returns a String version of this CharArray, creating a new instance each time the method is called.
()
| 2014 | |
| 2015 | /** Returns a String version of this CharArray, creating a new instance each time the method is called. */ |
| 2016 | public String toString () { |
| 2017 | if (size == 0) return ""; |
| 2018 | return new String(items, 0, size); |
| 2019 | } |
| 2020 | |
| 2021 | public String toString (String separator) { |
| 2022 | if (size == 0) return ""; |