I have a byte array with a ~known binary sequence in it. I need to confirm that the binary sequence is what it\'s supposed to be. I have tried .equals in additi
.equals
Check out the static java.util.Arrays.equals() family of methods. There's one that does exactly what you want.