Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

transform primitive float array to Float array

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)
Source by www.amitph.com #
 
PREVIOUS NEXT
Tagged: #transform #primitive #float #array #Float #array
ADD COMMENT
Topic
Name
9+5 =