在java中定义一个studentname的类属性包括姓名,学号,地址,身份证号,姓别
1个回答
2015-04-09
展开全部
public class Studentname {
public String name;
public String number;
public String address;
public String idNumber;
public String sex;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getIdNumber() {
return idNumber;
}
public void setIdNumber(String idNumber) {
this.idNumber = idNumber;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
}
追问
要求通过一个输入框,连续输入十个学生
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询