s1 change to s2

This commit is contained in:
LIU 2020-10-12 23:27:22 +08:00 committed by GitHub
parent ce3090d8b0
commit ebcaf9cade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,7 +233,7 @@ String s1 = new String("aaa");
String s2 = new String("aaa");
System.out.println(s1 == s2); // false
String s3 = s1.intern();
String s4 = s1.intern();
String s4 = s2.intern();
System.out.println(s3 == s4); // true
```