Transformer le tableau flottant primitif en tableau flottant
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