Code example for CharBuffer

Methods: get

        return this.content.limit();
    public char charAt(int index)
        return this.content.get(index);
    public CharSequence subSequence(int start, int end) {
        return new CharSubSequence(this, start, end);
    public String toString() {
        StringBuffer sb = new StringBuffer(length());
        // could use StringBuffer.append(CharSequence) if willing to do 1.5 & up 
        for (int i = 0;i<length();i++) {
        return sb.toString();
Connect your IDE to all the code out there  Get Codota for Java