class Test { public static void main (String[] args) { int arr1[] = { 1 , 2 , 3 }; int arr2[] = { 1 , 2 , 3 }; if (arr1.equals(arr2)) System.out.println( "Same" ); else System.out.println( "Not same" ); } } |
(A) 相同的 (B) 不一样 答复: (B) 说明: arr1.equals(arr2) is same as (arr1 == arr2)
这个问题的小测验
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END