public class Test { public static void main(String[] args) { int[] a = {1, 2, 4, 6}; int[] b = a; int[] c = {1, 2, 4, 6}; //下面这个方法打印的是a数组的引用地址 System.out.println(a.toString()); //下面这个方法比较的是两个数组的引用是否相等 System.out.println("a.equals(b):"+a.equals(b…
package com.b; import java.util.ArrayList; //数组遍历删除,添加 public class Core2 { private String name; private int num; private String color; public Core2() { } public Core2(String a, int b, String c) { name = a; num = b; color = c; } public String getName…