Answers for "object type java to array"

1

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);
Posted by: Guest on March-12-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language