package quickHit;
public class LevelParam {
public static final Level levels[]=new Level[6];//对应六个级别()
static{
levels[0]=new Level(1,2,10,30,1);
levels[1]=new Level(2,3,9,26,2);
levels[2]=new Level(3,4,8,22,5);
levels[3]=new Level(4,5,7,18,8);
levels[4]=new Level(5,6,6,15,10);
levels[5]=new Level(6,7,5,12,15);
}
} public class Level {
private int leveIno;//各级别号
private int strLength;//各级别一次输出字符串的长度
private int strTime;//各级别输出字符串的次数
private int timeLimit;//各级别闯关的时间限制
private int perScore;//各级别正确输入一次的得分
public Level(int leveIno,int strLength,int strTime,int timeLimit,int perScore){
this.leveIno=leveIno;
this.strLength=strLength;
this.strTime=strTime;
this.timeLimit=timeLimit;
this.perScore=perScore;
}
这个Level levels[]=new Level[6];
和 Level level=new Level();的区别是什么呢
从内存和关系上来说。