1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-03-16 04:10:01 +01:00

fix wrongly written (#2797)

This commit is contained in:
bugsnail 2017-07-13 15:50:58 +08:00 committed by ven
parent 11de91491d
commit 341d7b3c66

View File

@ -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;