Java Integer Create toInts(long[] array)

Here you can find the source of toInts(long[] array)

Description

to Ints

License

Apache License

Declaration

public static int[] toInts(long[] array) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int[] toInts(long[] array) {
        int[] ret = new int[array.length];
        for (int e = 0; e < array.length; e++) {
            ret[e] = (int) array[e];
        }//www . j a  v  a  2s  .  c  o  m

        return ret;
    }
}

Related

  1. toInts(byte[] src, int srcOffset, int[] dst, int dstOffset, int length)
  2. toInts(byte[] value, int offset, int num)
  3. toInts(double[] arr)
  4. toInts(int val)
  5. toInts(Integer[] values)
  6. toInts(String intArray)
  7. toInts(String[] values)
  8. toIntsFromUBytes(byte[] byteArray)
  9. toIntStr(String floatStr)