Java Integer Create toIntArray(Integer[] data)

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

Description

to Int Array

License

Open Source License

Declaration

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

Method Source Code

//package com.java2s;

public class Main {
    public static int[] toIntArray(Integer[] data) {
        int[] r = new int[data.length];
        for (int i = 0; i < data.length; i++)
            r[i] = data[i].intValue();/*from  w  w  w .  j  av a  2s . c  o m*/
        return r;
    }
}

Related

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