List of usage examples for java.nio FloatBuffer wrap
public static FloatBuffer wrap(float[] array, int start, int len)
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.wrap(new float[] { 1.23F }, 0, 1); floatBuffer.rewind();//w w w .j a v a 2 s .c o m System.out.println(Arrays.toString(floatBuffer.array())); }