Here you can find the source of toIntArray(Integer[] objArray)
Parameter | Description |
---|---|
objArray | a parameter |
public static int[] toIntArray(Integer[] objArray)
//package com.java2s; //License from project: LGPL public class Main { /**// w w w . java2 s .c om * Integer conversion * * @param objArray * @return */ public static int[] toIntArray(Integer[] objArray) { int length = objArray.length; int[] retValue = new int[length]; for (int i = 0; i < length; i++) { retValue[i] = objArray[i]; } return retValue; } }