In this tutorial, we will see how to write the given float value into float buffer at the given index.
The java.nio.FloatBuffer class extends java.nio.Buffer class. It provides the following methods:
|static FloatBuffer||allocate(int capacity)||The allocate(..) method allocate a new float buffer.|
|abstract FloatBuffer||put(int index, float f)||The put(..) method write the given float value into associated buffer at given index.|
|abstract float||get(int index)||The get(...) method returns float value at given index.|
Store value at index : 3
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.