Java CharBuffer store String value
import java.nio.CharBuffer; public class Main { public static void main(String[] args) { CharBuffer cb = CharBuffer.wrap("Hello"); System.out.println(cb);// w w w .j av a 2 s. co m } }