package com.ceo2a.test;
import java.util.Arrays;
public class Test2 {
public static void main(String[] args) {
int[] arr1={5,6,9};
int[] arr2={5,6,9};
Object[] objArr1={arr1};
Object[] objArr2={arr2};
System.out.println("objArr1 == objArr2 ? "+Arrays.equals(objArr1, objArr2));
System.out.println("objArr1 == objArr2 ? "+Arrays.deepEquals(objArr1, objArr2));
}
}
How do you check the equality of two inner arrays in java? |
0 Comment to "How do you check the equality of two inner arrays in java?"
Post a Comment