Java Object to int castToInt(double[] aDouble)

Here you can find the source of castToInt(double[] aDouble)

Description

cast To Int

License

Open Source License

Declaration

public static int[] castToInt(double[] aDouble) 

Method Source Code

//package com.java2s;
//License from project: GNU General Public License 

public class Main {
    public static int[] castToInt(double[] aDouble) {
        int[] aInt = new int[aDouble.length];
        for (int i = 0; i < aInt.length; i++) {
            aInt[i] = (int) aDouble[i];
        }/*from   w ww  .ja va 2 s .c  o m*/
        return aInt;
    }
}

Related

  1. castInt(Object o)
  2. castInt(Object o)
  3. castToInt(final long value)
  4. castToInt(Object value)
  5. castToInteger(final String uid)
  6. castToInteger(Object object)