Compare Two Java byte Arrays Example
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
byte[] a1 = new byte[] { 7, 25, 12 };
byte[] a2 = new byte[] { 7, 25, 12 };
System.out.println(Arrays.equals(a1, a2));
}
}
Related examples in the same category