In this tutorial you will see how to get the limit position and capacity of a character buffer. The given example illustrate the use of limit() method which returns the buffer's limit like wise capacity() and position() methods return capacity and position..
import java.nio.CharBuffer;
|
| position = 0 Limit = 5 capacity = 5 |
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.