Here you can find the source of bitwiseOrByteArrays(byte[] arr0, byte[] arr1)
public static byte[] bitwiseOrByteArrays(byte[] arr0, byte[] arr1)
//package com.java2s; public class Main { public static byte[] bitwiseOrByteArrays(byte[] arr0, byte[] arr1) { byte[] returnArray = new byte[arr0.length]; for (int i = 0; i < arr0.length; i++) { returnArray[i] = (byte) (arr0[i] | arr1[i]); }/* www. ja v a 2s. c o m*/ return returnArray; } }