import java.util.Arrays; public class Main { public static void main(String[] args) { long[] a1 = new long[] { 2, 8, 3 }; long[] a2 = new long[] { 2, 8, 3 }; System.out.println(Arrays.equals(a1, a2)); } }