某中学有若干学生(学生对象放在一个List中),

/*某中学有若干学生(学生对象放在一个List中),香港虚拟主机, * 每个学生有一个姓名属性、班级属性和考试成绩属性(int), * 某次考试结束后,虚拟主机,每个学生都获得了一个考试成绩。请打印出每个班级的总分和平均分。*/

Student类

Student 2 {Team team; score; Student(String name,int score) 7 { 8this.setName(name); 9this.setScore(score);10 }11public String getName()12 {13return name;14 } setName(String name)16 {17this.name = name;18 } getScore()20 {21return score;22 }setScore(int score)24 {25this.score = score;26 }27public Team getTeam()28 {29return team;30 } setTeam(Team team)32 {33this.team = team;34 }String toString() {38return “\t|-姓名:”+this.name +”;成绩:”+this.score;39 }40 },香港虚拟主机而更像是听见了天地间冥冥中的呼唤,

某中学有若干学生(学生对象放在一个List中),

相关文章:

你感兴趣的文章:

标签云: