Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

int to integer array in java

int[] oldArray;

... // Here you would assign and fill oldArray

Integer[] newArray = new Integer[oldArray.length];
int i = 0;
for (int value : oldArray) {
    newArray[i++] = Integer.valueOf(value);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #int #integer #array #java
ADD COMMENT
Topic
Name
3+9 =