In this tutorial you will see how to write the given character into buffer at the given index. The put (int index, char c) allow to write a character at particular index. It also allow to overwrite the content of the buffer which can be seen in this example.
import java.nio.CharBuffer;
|
| x |