You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
收到,感谢反馈
| |
anotherpony
|
|
***@***.***
|
签名由网易邮箱大师定制
在2021年9月2日 ***@***.***> 写道:
public class Intern {
public static void main(String[] args) {
String s = new String("2");
String s2 = "2";
s.intern();
System.out.println( s == s2); // false
System.out.println( s.intern() == s2); // true
}
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
public class Intern {
public static void main(String[] args) {
String s = new String("2");
String s2 = "2";
s.intern();
System.out.println( s == s2); // false
System.out.println( s.intern() == s2); // true
}
}
The text was updated successfully, but these errors were encountered: