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 569bd83

Browse filesBrowse files
authored
[U] 修改String源码md中的错误描述
1 parent d1601d0 commit 569bd83
Copy full SHA for 569bd83

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎note/JDK/深入学习String源码与底层(二).md‎

Copy file name to clipboardExpand all lines: note/JDK/深入学习String源码与底层(二).md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ false
120120
return len1 - len2;
121121
}
122122
```
123-
从compareTo()的源码可知,这方法时先比较两个字符串内的字符串数组的ASCII值,如果最小字符串都比较完了都还是相等的,则返回字符串长度的差值;否则在最小字符串比较完之前,字符不相等,则返回不相等字符的ASCII值。这里本人也有点困惑这个方法的有什么实际的用处,有了解的小伙伴可以留言,大家互相学习。
123+
从compareTo()的源码可知,这方法时先比较两个字符串内的字符串数组的ASCII值,如果最小字符串都比较完了都还是相等的,则返回字符串长度的差值;否则在最小字符串比较完之前,字符不相等,则返回不相等字符的ASCII值差值。这里本人也有点困惑这个方法的有什么实际的用处,有了解的小伙伴可以留言,大家互相学习。
124124

125125
### 5. String的startWith(String prefix)方法
126126

@@ -548,4 +548,4 @@ if (!limited || list.size() < limit)
548548

549549
### 总结
550550

551-
String作为Java中使用频率最多的类,它在日程开发中起到了至关重要的作用。由于String方法还有很多,这里就不一一总结了。
551+
String作为Java中使用频率最多的类,它在日程开发中起到了至关重要的作用。由于String方法还有很多,这里就不一一总结了。

0 commit comments

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