Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

object to array java

// With streams map your object array to an int array
Integer intArray[] = Arrays.stream(objArray)
                .map(Object::toString)
                .map(Integer::valueOf)
                .toArray(Integer[]::new);
 
PREVIOUS NEXT
Tagged: #object #array #java
ADD COMMENT
Topic
Name
3+4 =