Skip to content

Commit

Permalink
s1 change to s2
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunzhuo committed Oct 12, 2020
1 parent ce3090d commit ebcaf9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notes/Java 基础.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit ebcaf9c

Please sign in to comment.