摘要:
package equals.tran;import java.util.HashSet;import java.util.Set;public class Example { public static void main(String[] args) { Point p = new Point(1, 2); Set<Point> set = new HashSet<Point>(); set.add(p); System.out.println(set.contains(new Point(1, 2))); p.setX(2); System.out.println 阅读全文