Java Integer to Byte intToByte(int[] values)

Here you can find the source of intToByte(int[] values)

Description

int To Byte

License

Open Source License

Declaration

public static byte[] intToByte(int[] values) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte[] intToByte(int[] values) {
        if (values == null) {
            return null;
        }//from  w w  w.  ja v a  2  s . co  m

        byte[] results = new byte[values.length];
        for (int i = 0; i < values.length; i++) {
            results[i] = (byte) values[i];
        }
        return results;
    }
}

Related

  1. intToByte(int number)
  2. intToByte(int number, int byteLength)
  3. intToByte(int v, byte[] dest)
  4. intToByte(int value)
  5. intToByte(int value)
  6. intToByte4(int number)
  7. intToByteArr(int v)