mengubah array float primitif menjadi array float
double[] primitives = new double[]{1.1, 1.2, 1.3, 1.4};
Double[] objects = Arrays.stream(primitives)
.boxed()
.toArray(Double[]::new);
Code language: Java (java)
Tame Tortoise