因为西安疫情的原因,我们很多考试都已经取消了,没有办法进行线下的考试,就连java程序设计也成了线上的考试。第一次写博客,就想着和大家一起交流,因为是初学者,很多地方也有做的不好的地方,请大家多多指教。顺便提一句,西安加油。
好了废话不多说,直接给大家贴上代码:
1,学生信息管理系统(这个应该大家写的最多的了,我给大家贴上):
(1),首先就是学生类:
public class Student {
private String name; // 姓名
private String sex; // 性别
private String nativePlace; // 籍贯
private String collage; // 学院
private String number; // 学号
public Student(String name, String sex, String nativePlace, String collage, String number) {
this.name = name;
this.sex = sex;
this.nativePlace = nativePlace;
this.collage = collage;
this.number = number;
}
public void setName(String name) {
this.name = name;
}
public void setSex(String sex) {
this.sex = sex;
}
public void setNativePlace(String nativePlace) {
this.nativePlace = nati版权声明:本文为web15285868498原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。