Java Integer Convert To convertIntToDouble(final int[] intValues)

Here you can find the source of convertIntToDouble(final int[] intValues)

Description

convert Int To Double

License

Open Source License

Declaration

public static double[] convertIntToDouble(final int[] intValues) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (C) 2005, 2016 Wolfgang Schramm and Contributors
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation version 2 of the License./* w w w.java 2 s. com*/
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
 *******************************************************************************/

public class Main {
    public static double[] convertIntToDouble(final int[] intValues) {

        if (intValues == null) {
            return null;
        }

        if (intValues.length == 0) {
            return new double[0];
        }

        final double[] doubleValues = new double[intValues.length];

        for (int valueIndex = 0; valueIndex < intValues.length; valueIndex++) {
            doubleValues[valueIndex] = intValues[valueIndex];
        }

        return doubleValues;
    }
}

Related

  1. convertIntFromBytes(byte[] byteArray)
  2. convertIntfwl(String[] idArray)
  3. convertIntList(Integer[] list)
  4. convertIntoRange(Integer inValue, int inSteps, int inMin, int inMax)
  5. convertIntToDayOfWeek(int day)
  6. convertIntToDWord(final int value)
  7. convertIntToLong(Integer intId)
  8. convertInttoMultiByte(int val)
  9. convertIntToTwoChar(int n)