摘要: public class TestEquals { public static void main(String[] args) { Cat c1 = new Cat(1, 2, 3); Cat c2 = new Cat(1, 2, 6); System.out.println(c1 == c2); System.out.println(c1.equals(c2)); String s1 = new String("hello"); String s2 = new String("hell... 阅读全文
posted @ 2013-04-03 19:43 glt66 阅读(136) 评论(0) 推荐(0) 编辑