Java Utililty Methods Array Cast

List of utility methods to do Array Cast

Description

The list of methods to do Array Cast are organized into topic(s).

Method

double[]arrayCastToDouble(int[] arrayInt)
array Cast To Double
double[] arrayDouble = new double[arrayInt.length];
for (int i = 0; i < arrayDouble.length; i++)
    arrayDouble[i] = (double) arrayInt[i];
return arrayDouble;
int[]arrayCastToInt(double[] a)
array Cast To Int
int[] b = new int[a.length];
for (int i = 0; i < b.length; i++)
    b[i] = (int) a[i];
return b;