Java Integer Array Convert To intArray2IntegerArray(int[] array, int newLength)

Here you can find the source of intArray2IntegerArray(int[] array, int newLength)

Description

int Array Integer Array

License

Apache License

Declaration

public static Integer[] intArray2IntegerArray(int[] array, int newLength) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static Integer[] intArray2IntegerArray(int[] array, int newLength) {
        Integer[] ret = new Integer[newLength];
        for (int i = 0; i < ret.length; i++) {
            ret[i] = array[i];//from   w  w  w.  j a  v a  2s.  c o m
        }
        return ret;
    }
}

Related

  1. copySignedIntToDoubleArray(int[] src)
  2. copySignedIntToShortArray(int[] src)
  3. intArray2HashCode(int[] xs)
  4. intArray2HexString(int[] intArray)
  5. intArray2Json(int[] array)
  6. intArrayToAddressString(int vals[])
  7. intArrayToBits(int[] ina, int min, int max, int numBits)
  8. intArrayToCharArray(int[][] intArray)