Skip to content

Instantly share code, notes, and snippets.

@ntub46010
Created January 26, 2022 07:59
Show Gist options
  • Save ntub46010/fdb21bee8b52873ea7357728f667d54d to your computer and use it in GitHub Desktop.
Save ntub46010/fdb21bee8b52873ea7357728f667d54d to your computer and use it in GitHub Desktop.
public static boolean equals(byte[] value, byte[] other) {
if (value.length == other.length) {
for (int i = 0; i < value.length; i++) {
if (value[i] != other[i]) {
return false;
}
}
return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment