Java tutorial
import java.nio.FloatBuffer; import java.util.Arrays; public class Main { public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.allocate(10); floatBuffer.put(1.23F); System.out.println(Arrays.toString(floatBuffer.array())); } }