摘要: String s1=”welcome”; String s2= “welcome:; String s3 =new String(”welcome”); //新建对象 指向新的内存 比较内容相同 但是地址不同 System.out.println(s1.equals(s3)); System.out 阅读全文
posted @ 2017-12-23 07:42 NewIand 阅读(361) 评论(0) 推荐(0) 编辑