Compare two long type arrays
import java.util.Arrays; public class Main { public static void main(String[] argv) throws Exception { boolean b = Arrays.equals(new long[] { 0L }, new long[] { 0L }); // true } }