Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Arrays;

public class Main {
    public static void main(String[] argv) throws Exception {

        boolean[] bArr1 = new boolean[] { true, false };
        boolean[] bArr2 = new boolean[] { true, false };
        boolean b = Arrays.equals(bArr1, null); // false
        b = Arrays.equals(bArr1, bArr2); // true
    }
}