The java.nio.ShortBuffer class extends java.nio.Buffer class. It provides the following methods:
|static ShortBuffer||allocate(int capacity)||The allocate(..)method allocate a new short buffer.|
|abstract ShortBuffer||put(short s)||The put(..) method write short value in short buffer.|
|final int||hashCode()||The hashCode(..) method returns current hash Code of buffer.|
Before writing content the current hash code of buffer : 1794185345
After writing content the current hash code of buffer : 2253
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.