Java Integer Create toIntArray(Integer[] objArray)

Here you can find the source of toIntArray(Integer[] objArray)

Description

Integer conversion

License

LGPL

Parameter

Parameter Description
objArray a parameter

Declaration

public static int[] toIntArray(Integer[] objArray) 

Method Source Code

//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;
    }
}

Related

  1. toIntArray(final int ip)
  2. toIntArray(final Object[] array)
  3. toIntArray(final String[] arrayOfIntStrings)
  4. toIntArray(int... values)
  5. toIntArray(Integer[] data)
  6. toIntArray(long color)
  7. toIntArray(long[] in)
  8. toIntArray(String intArray)
  9. toIntArray(String src)