Java tutorial
//package com.java2s; import java.util.Arrays; public class Main { public static boolean cmpByteArrayShowResult(byte[] array1, byte[] array2, String comparedAlg) { return Arrays.equals(array1, array2); } }