Java Integer Array Create intArray(Integer... values)

Here you can find the source of intArray(Integer... values)

Description

int Array

License

Open Source License

Declaration

public static int[] intArray(Integer... values) 

Method Source Code

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

Related

  1. intArray(double a, double b, double c)
  2. intArray(int len)
  3. intArray(String data)
  4. intArrayConcat(int[] a, int[] b)
  5. intArrayContains(int val, int[] array)
  6. intArrayContains(int[] array, int key)