Skip to content

Commit ebcaf9c

Browse files
authored
s1 change to s2
1 parent ce3090d commit ebcaf9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notes/Java 基础.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ String s1 = new String("aaa");
233233
String s2 = new String("aaa");
234234
System.out.println(s1 == s2); // false
235235
String s3 = s1.intern();
236-
String s4 = s1.intern();
236+
String s4 = s2.intern();
237237
System.out.println(s3 == s4); // true
238238
```
239239

0 commit comments

Comments
 (0)