Java Integer to Binary iToB(int[] intVals)

Here you can find the source of iToB(int[] intVals)

Description

i To B

License

Open Source License

Declaration

public static final byte[] iToB(int[] intVals) 

Method Source Code

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

public class Main {
    public static final byte[] iToB(int[] intVals) {
        byte[] byteVals = new byte[intVals.length];
        for (int i = 0; i < byteVals.length; i++) {
            byteVals[i] = (byte) intVals[i];
        }/*from  ww  w .  j  a  v a 2  s.  c om*/
        return byteVals;
    }
}

Related

  1. intToBinary(int i, int byteLength)
  2. intToBinary(long value, int bits)
  3. intToBinString(int val, int width)
  4. itob(int i, int j)
  5. ItoB(int x)
  6. itob(long integer, int[] arr)