Skip to content

Commit a0ec79d

Browse files
committed
修改目录
1 parent 3e732cf commit a0ec79d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Chapter1/Chapter1.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ for(int i = 0; i < 100;i++){
108108
System.out.println(stndentWeight[i]);
109109
}
110110
```
111-
数组的长度
111+
遍历数组
112112
------
113113
通过我们之前学过的循环方法,我们可以遍历整个数组中的元素:
114114

@@ -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: 0 additions & 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
]

0 commit comments

Comments
 (0)