Here you can find the source of xor(int[][] array, int[][] array2)
public static int[][] xor(int[][] array, int[][] array2)
//package com.java2s; //License from project: Apache License public class Main { public static int[][] xor(int[][] array, int[][] array2) { int[][] result = new int[4][4]; for (int i = 0; i < array.length; i++) result[i] = xor(array[i], array2[i]); return result; }//ww w. j a v a2 s .c o m private static int[] xor(int[] array, int[] array2) { int[] result = new int[4]; for (int i = 0; i < array.length; i++) result[i] = array[i] ^ array2[i]; return result; } }