摘要: 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 阅读全文
posted @ 2011-05-04 17:45 Evanlee 阅读(574) 评论(1) 推荐(0) 编辑