Java tutorial
//package com.java2s; import java.util.Arrays; public class Main { public static boolean checkAreEquals(byte[] a, byte[] b) { return Arrays.equals(a, b); } }