Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. String s="AAAA"
  2. ByteBuffer newBuffer = ByteBuffer.allocate(100);
  3. CharBuffer cbuf = newBuffer.asCharBuffer();
  4. for (char c : s.toCharArray()) {
  5. cbuf.put(c);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement