/*用List打出一个球员的名单*/
public class Nba {
String name;
String epithet;
Double score;
Double bank;
Double assisting;
public Nba(String name, String epithet, Double score, Double bank, Double assisting) {
this.name = name;
this.epithet = epithet;
this.score = score;
this.bank = bank;
this.assisting = assisting;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEpithet() {
return epithet;
}
public void setEpithet(String epithet) {
this.epithet = epithet;
}
public Double getScore() {
return score;
}
public void setScore(Double score) {
this.score = score;
}
public Double getBank() {
return bank;
}
public void setBank(Double bank) {
this.bank = bank;
}
public Double getAssisting() {
return
Java-List集合练习
最新推荐文章于 2024-10-12 11:10:55 发布