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