Code example for CharBuffer

Methods: append

0
	 
	public int read(CharBuffer cb){
		if (count-- == 0)
			return -1; 
		String s = next()+" ";
		cb.append(s);
		return s.length();
	} 
} 
 
 
Connect your IDE to all the code out there  Get Codota for Java