summaryrefslogtreecommitdiffhomepage
path: root/zh-cn
diff options
context:
space:
mode:
authorbugsnail <leo-yi@users.noreply.github.com>2017-07-13 15:50:58 +0800
committerven <vendethiel@hotmail.fr>2017-07-13 09:50:58 +0200
commit341d7b3c6636b4e66dc1eaf92a7b80497cf551f5 (patch)
treed4d1f5970f556397f9beb6001108c7ba68028cad /zh-cn
parent11de91491dc6931ff4e23b1ec18d082b9e232fbe (diff)
fix wrongly written (#2797)
Diffstat (limited to 'zh-cn')
-rw-r--r--zh-cn/java-cn.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/zh-cn/java-cn.html.markdown b/zh-cn/java-cn.html.markdown
index 1e9c38f6..27003f3e 100644
--- a/zh-cn/java-cn.html.markdown
+++ b/zh-cn/java-cn.html.markdown
@@ -108,7 +108,7 @@ public class LearnJava {
boolean [] booleanArray = new boolean[100];
// 声明并初始化数组也可以这样:
- int [] y = {9000, 1000, 1337};
+ int [] intArray = {9000, 1000, 1337};
// 随机访问数组中的元素
System.out.println("intArray @ 0: " + intArray[0]);
@@ -309,7 +309,7 @@ class Bicycle {
name = "Bontrager";
}
- // 一下是一个含有参数的构造函数
+ // 以下是一个含有参数的构造函数
public Bicycle(int startCadence, int startSpeed, int startGear, String name) {
this.gear = startGear;
this.cadence = startCadence;