Here you can find the source of arrayEq(byte[] a, byte[] b)
public static boolean arrayEq(byte[] a, byte[] b)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean arrayEq(byte[] a, byte[] b) { if (a.length != b.length) { return false; }// w w w . j ava 2 s . c o m for (int i = 0; i < a.length; i++) { if (a[i] != b[i]) return false; } return true; } }