Java Object to Double castToDoubles(final int[] ints)

Here you can find the source of castToDoubles(final int[] ints)

Description

cast To Doubles

License

Open Source License

Declaration

public static double[] castToDoubles(final int[] ints) 

Method Source Code

//package com.java2s;

public class Main {
    public static double[] castToDoubles(final int[] ints) {
        final double[] doubles = new double[ints.length];
        for (int i = 0; i < ints.length; ++i)
            doubles[i] = ints[i];/*from w  w  w.  java 2 s .  c om*/
        return doubles;
    }

    public static double[][] castToDoubles(final int[][] ints) {
        final double[][] doubles = new double[ints.length][];
        for (int l = 0; l < ints.length; ++l)
            doubles[l] = castToDoubles(ints[l]);
        return doubles;
    }
}

Related

  1. castDoubleToFloat(final double v)
  2. castShortToDouble(short[] x)
  3. castToDouble(Object object)
  4. castToDoubleArray(byte[] data)
  5. castToDoubleArray(Object[] array)
  6. objectToDouble(Object o)
  7. objectToDouble(Object o)
  8. objectToDouble(Object o)
  9. objectToDouble(Object Obj)