1import java.util.Arrays;
2
3public class JavaArrayConceptsConitnue
4{
5 public static void main(String[] args)
6 {
7 int[] x = {10,12,20,30,25};
8 int[] subx = new int[]{10,12,20,30,26};
9
10 if(Arrays.equals(x, subx) == true)
11 {
12 System.out.println("Both the arrays are equal");
13 }
14 else
15 {
16 System.out.println("Arrays are not equal");
17 }
18 }
19}