Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c93bef0

Browse filesBrowse files
TnecivTneciv
authored andcommitted
修改“如何”为“如果” at line 43
1 parent 7bdabe1 commit c93bef0
Copy full SHA for c93bef0

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎contents/how-do-i-compare-strings-in-java.md

Copy file name to clipboardExpand all lines: contents/how-do-i-compare-strings-in-java.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ new String("test") == new String("test") // --> false
4040
```
4141

4242
###其他
43-
- 如何你重写了equal方法,记得相对应地修改hashcode方法,否则将会违反这两个方法的对等关系,如果两个对象是相等(equal)的,那么两个对象调用hashCode必须产生相同的整数结果,即:equal为true,hashCode必须为true,equal为false,hashCode也必须为false
44-
- 如果要忽略大小写进行对比,可以用equalsIgnoreCase()方法
43+
- 如果你重写了equal方法,记得相对应地修改hashcode方法,否则将会违反这两个方法的对等关系,如果两个对象是相等(equal)的,那么两个对象调用hashCode必须产生相同的整数结果,即:equal为true,hashCode必须为true,equal为false,hashCode也必须为false
44+
- 如果要忽略大小写进行对比,可以用equalsIgnoreCase()方法

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.