Here you can find the source of intArray(Integer... values)
public static int[] intArray(Integer... values)
//package com.java2s; public class Main { public static int[] intArray(Integer... values) { int[] result = new int[values.length]; for (int i = 0; i < values.length; ++i) { result[i] = values[i];//from w w w . j av a2 s . c o m } return result; } }