2013年1月5日
摘要: 最近看到一个例子,讲的是“equals”和“==”的区别,我们来先看一下例子:public class equal { public static void main(String[] args){ String str1 = new String("qwer"); String str2 = new String("qwer"); String str3 = str1; if(str1==str2){ System.out.println("对"); } else { ... 阅读全文
posted @ 2013-01-05 00:35 liwustore 阅读(1859) 评论(8) 推荐(2) 编辑