Java Long Number Array Convert longArrayToIntArray(long[] longs)

Here you can find the source of longArrayToIntArray(long[] longs)

Description

long Array To Int Array

License

LGPL

Declaration

public static int[] longArrayToIntArray(long[] longs) 

Method Source Code

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

public class Main {
    public static int[] longArrayToIntArray(long[] longs) {
        int[] ret = new int[longs.length * 2];
        for (int i = 0; i < longs.length; i++) {
            ret[i] = (int) (longs[i] >>> 32);
            ret[i + 1] = (int) longs[i];
        }/*  w  ww .j a  v a  2s.  co  m*/
        return ret;
    }
}

Related

  1. longArray2Json(long[] array)
  2. longArrayToBytes(long[] d)