Java Integer Array Convert To intsToIntegers(int... ints)

Here you can find the source of intsToIntegers(int... ints)

Description

Converts an array of ints to an array of Integers.

License

Open Source License

Declaration

public static Integer[] intsToIntegers(int... ints) 

Method Source Code

//package com.java2s;
/*/*from  w  w  w .  j ava 2 s .  co  m*/
 * Copyright (c) 2014 Roc Project.  This is free software.  See
 * LICENSE.txt for details.
 */

public class Main {
    /**
     * Converts an array of ints to an array of Integers.
     */
    public static Integer[] intsToIntegers(int... ints) {
        Integer[] integers = new Integer[ints.length];
        for (int index = 0; index < ints.length; ++index) {
            integers[index] = Integer.valueOf(ints[index]);
        }
        return integers;
    }
}

Related

  1. intsToBytes(int[] data)
  2. intsToBytes(int[] intArray)
  3. intsToBytes(int[][] ints)
  4. intsToCommaSeparatedString(int[] ints)
  5. intsToHex(int[] val)
  6. intsToLong(int highBits, int lowBits)
  7. intsToLong(int off, int... arr)
  8. intsToLongs(int... ints)
  9. intsToUnsignedBytes(int[] sprite)