I have something like this byte[] a; byte[] b; witch are initialised and have different lengths. When I try to compare them it does not show if they are equal, even for equal initialisation values. I compare them like: if (a.equals(b)) witch does not work. I tryed to make them strings and compare again, but same result. I tryed if (a ...