class Text { int i; public static void main(String [] args) { Text one = new Text(); Text two = new Text(); one.i = two.i = 100; System.out.println(one.equals(two)); } } 这个所打印出来的值为什么是FALES而不是TRUE啊??
上面那个里面我不是写了one.i = two.i=100吗! class Text { public static void main (String [] args) { Integer a = new Integer (47); Integer b = new Integer (47); System.out.println(a.equals(b)); } } 那这个为什么是TRUE呢??都糊涂了!