Java Array Cast arrayCastToInt(double[] a)

Here you can find the source of arrayCastToInt(double[] a)

Description

array Cast To Int

License

Open Source License

Declaration

public static int[] arrayCastToInt(double[] a) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int[] arrayCastToInt(double[] a) {
        int[] b = new int[a.length];

        for (int i = 0; i < b.length; i++)
            b[i] = (int) a[i];

        return b;
    }/*w w  w  .ja v a2 s . c om*/
}

Related

  1. arrayCastToDouble(int[] arrayInt)