FloatBuffer.get() has the following syntax.
public abstract float get()
In the following code shows how to use FloatBuffer.get() method.
import java.nio.FloatBuffer; //from w ww. j a va 2 s . c o m public class Main { public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.allocate(10); floatBuffer.put(0,1.23F); floatBuffer.rewind(); System.out.println(floatBuffer.get()); } }
The code above generates the following result.