Java tutorial
import java.util.Arrays; public class Main { public static void main(String[] args) { boolean[] a1 = new boolean[] { true, false, true }; boolean[] a2 = new boolean[] { true, false, true }; System.out.println(Arrays.equals(a1, a2)); } }