We would like to know how to compare two arrays for equality.
/*from w w w. j ava 2s .co m*/ import java.util.Arrays; public class Main { public static void main(String[] argv) throws Exception { boolean b = Arrays.equals(new byte[] { 0 }, new byte[] { 0 }); // true } }