Java tutorial
import java.nio.FloatBuffer; import java.util.Arrays; public class Main { public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.wrap(new float[] { 1.23F }, 0, 1); floatBuffer.rewind(); System.out.println(Arrays.toString(floatBuffer.array())); } }