Skip to content

Commit cde14f6

Browse files
committed
2 parents 89243f2 + a0ec79d commit cde14f6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Chapter1/Chapter1.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ int array[] = {1,2,3};
131131
```
132132
这样就会把数组中的内容都输出出来。
133133

134-
TIPS:在for-each循环中不能增加或者减少数组的内容,不然可能会导致循环出现问题。
134+
**注意:**在for-each循环中不能增加或者减少数组的内容,不然可能会导致循环出现问题。
135+
135136
作为参数传递数组
136137
----
137138
Array被当做一种对象Object,他在被传递的时候传递的是Reference而不是值(具体后面会提到),所以Java不会把Array复制一份。传入后修改array的内容会导致原array变量读取出的是修改后的内容。比如下面这个例子:
@@ -184,7 +185,7 @@ for (int i = 0; i < arr.length; i++){
184185

185186
(E) I, II, and III
186187

187-
下面的内容要按一下才会显示
188+
答案
188189
<cr type="hidden"><notice>隐藏内容功能在此无法正常显示,请移步至[程谱 coderecipe.cn](https://coderecipe.cn/learn/1)查看。</notice>E</cr>
189190

190191
2.Refer to the following codes egment. You may assume that arr is an array of int values.
@@ -205,5 +206,5 @@ Which of the following will be the result of executing the segment?
205206

206207
(E) A run-time error will occur.
207208

208-
下面的内容要按一下才会显示
209+
答案
209210
<cr type="hidden"><notice>隐藏内容功能在此无法正常显示,请移步至[程谱 coderecipe.cn](https://coderecipe.cn/learn/1)查看。</notice>E</cr>

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ P.S: 教程读者请不要直接阅读本项目的文件,因为诸多功能在
1616
* 数组的定义和数组值的存取
1717
* 数组的长度
1818
* 遍历数组
19-
* 数组和类
2019
* 作为参数传递数组
2120
* 小练习
2221
2. 数组列表ArrayList

content.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
{"name":"数组的定义和数组值的存取"},
1313
{"name":"数组的长度"},
1414
{"name":"遍历数组"},
15-
{"name":"数组和类"},
1615
{"name":"作为参数传递数组"},
1716
{"name":"小练习"}
1817
]
@@ -21,6 +20,7 @@
2120
"name": "数组列表ArrayList",
2221
"content": "Chapter2/Chapter2.md",
2322
"sections": [
23+
{"name":"数组列表的定义"},
2424
{"name":"集合API"},
2525
{"name":"集合和泛型"},
2626
{"name":"包类"},

0 commit comments

Comments
 (0)