File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -415,9 +415,9 @@ PS:图片左上角位置默认为坐标原点。
415415| ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- |
416416| 下标 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
417417
418- 假设我我们指定star为1 ,end为3,那么最终截取的字符串就是"BC"。
418+ 假设我们指定start为1 ,end为3,那么最终截取的字符串就是"BC"。
419419
420- 一般来说,** 使用start和end指定的区间是前闭后开的,即包含start指定的下标,而不包含end指定的下标** ,故[ 1,3)最后获取到的下标只有 下标1 和 下标2 的字符,就是"BC".
420+ 一般来说,** 使用start和end指定的区间是前闭后开的,即包含start指定的下标,而不包含end指定的下标** ,故[ 1,3)最后获取到的下标只有 下标1 和 下标2 的字符,就是"BC"。
421421
422422示例:
423423``` java
@@ -430,7 +430,7 @@ PS:图片左上角位置默认为坐标原点。
430430
431431另外,对于字符数组char[ ] 我们截取字符串使用起始位置(index)和长度(count)来确定。
432432
433- 同样,我们指定index为1,count为3,那么最终截取到的字符串是"BCD".
433+ 同样,我们指定index为1,count为3,那么最终截取到的字符串是"BCD"。
434434
435435其实就是从下标位置为1处向后数3位就是截取到的字符串,示例:
436436``` java
You can’t perform that action at this time.
0 commit comments