get Primitive Array Integer - Java java.lang

Java examples for java.lang:int Array

Description

get Primitive Array Integer

Demo Code


//package com.java2s;

public class Main {
    public static int[] getPrimitiveArrayInteger(Integer[] array) {
        int[] primitive = new int[array.length];

        for (int i = 0; i < array.length; ++i)
            primitive[i] = array[i];/*from w ww.  ja  va2  s  .  c o m*/

        return primitive;
    }
}

Related Tutorials