Compare Two Java long Arrays Example
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));
}
}
Related examples in the same category