inverse Byte Array Bits - Android File Input Output

Android examples for File Input Output:Byte Array

Description

inverse Byte Array Bits

Demo Code


//package com.java2s;

public class Main {
    public static byte[] inverseByteArrayBits(byte[] arr0) {
        byte[] returnArray = new byte[arr0.length];

        for (int i = 0; i < arr0.length; i++) {
            returnArray[i] = (byte) ~arr0[i];
        }// w  ww .  ja v a2  s  . c  o  m

        return returnArray;
    }
}

Related Tutorials