Answers for "how to convert object to array in java"

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 "how to convert object to array in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language