You can use Stream APIs of Java 8
int[] intArray = Arrays.stream(array).mapToInt(Integer::intValue).toArray();
More Related Contents:
- How to convert a Java 8 Stream to an Array?
- Lambda expression to convert array/List of String to array/List of Integers
- How can I create a stream from an array?
- Why does Collections.sort use Mergesort but Arrays.sort does not?
- Why are new java.util.Arrays methods in Java 8 not overloaded for all the primitive types?
- java: Arrays.sort() with lambda expression
- Difference between Arrays.sort() and Arrays.parallelSort()
- Java 8 Stream and operation on arrays
- How does array work? How to create a basic array data structure using java? [closed]
- How do I determine whether an array contains a particular value in Java?
- Do Java arrays have a maximum size?
- org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15
- Comparing two integer arrays in Java
- How to make an array of arrays in Java
- Java 8 lambdas group list into map
- Java – generate Random range of specific numbers without duplication of those numbers – how to?
- Fetch first element of stream matching the criteria
- What is the most elegant way to check if all values in a boolean array are true?
- Java String array: is there a size of method?
- How to get the Array Class for a given Class in Java?
- Java array with more than 4gb elements
- Find duplicate element in array in time O(n)
- Java 8 Stream with batch processing
- Why can’t I assign lambda to Object?
- Java: Multi-dimensional array vs. one-dimensional
- Java 8 Collectors.toMap SortedMap
- Get value from one Optional or another
- How to add elements of a Java8 stream into an existing List
- Java: Array with loop
- javafx 8 compatibility issues – FXML static fields or methods