for (int i = hash.length - 1; i >= 0; i--) { if ((hash[i] & 0xff) > (target[i] & 0xff)) return false; if ((hash[i] & 0xff) < (target[i] & 0xff)) return true; } return true;