摘要: 用intern();方法在test和main中结果不一样,很离奇 @Test public void test10(){ String s = new String("1"); s.intern(); String s2 = "1"; System.out.println(s == s2); Str 阅读全文
posted @ 2022-07-31 08:42 金玉良猿 阅读(57) 评论(0) 推荐(0)