问题补充说明:做一个有图片要求的就行,不需要太复杂的... 做一个有图片要求的就行,不需要太复杂的 展开
pack显海善善任课超价跳异agebean;publicclassStudent{Stringname;StringstudentId;Stringsex;intgrade;publicStudent(Stringname,StringstudentId,Stringsex,intgrade){this.name=name;th360问答is.studentId=studentId;this.sex=sex;this.grade=grade;}publicintgetGrade(){returngra至田某听de;}publicStringgetName(){returnname;}publicStringgetSex(){returnsex;}pub后定准满院率站型雨licvoidsetGrade(intg){this.grade=g;}publicStringgetStuden孔城助是室走总候互告tId(){returnstudentId;}}System.out.println("***********谓模比曲回称万****");System.out.println("*欢迎来到学生管理系统*");System.out.println("*1:增加学生*");S建主干线甲亲据了经局判ystem.out.println("*2:垂曾失以卷研路害数删除学生*");System.out.println("*3:修改成绩*");S整美激友意少便完因送再ystem.out.println("*4:查询成绩*");System.out.pr件intln("***************");System.out.println("您想选择的操作是:");importjava.util.*;
Scanne快汽雨名脸阻女烧复胶rsc=newScanner(System.in);intchoice=s翻良优她土c.nextInt();
packagetest;importjava.util.*;importbean.Student;publ还icclassMa百吃整陈nager{staticListStudentList=newLinkedList()该胜称包天历;publicstaticvoidmain(String[]agrs){select(StudentList);}privatestat参条费维天换响能输观振icvoidselect(ListStudentList){System.out.println("***************");System.o亚ut.println("*欢迎来到学生管理系统*");System.out.println("*1:增加学生*");System.out.println("*2:删除学生*");System.out.println("*3:修改成绩*");System.out.println("*4:查方询成绩*");S滑ystem.out.println("***************");System.out.println("您想选择的操作是:");Scannersc=newScanner(System.in);intchoice=sc.nextInt();switch(choice){//增加学生case1:System.out.print("请输入学生的姓名:");ScannerSname=newScanner(System.in);Stringname=Sname.nextLine();System.out.print("请输入学生的性别:");ScannerSsex=newScanner(System.in);Stringsex=Ssex.nextLine();System.out.print("请输入学生的学号:");ScannerSId=newScanner(System.in);StringstudentId=SId.nextLine();System.out.print("请输入学生的成绩:");ScannerSgrade=newScanner(System.in);intgrade=Sgrade.nextInt();StudentList.add(newStudent(name,studentId,sex,grade));System.out.println("添加成功!!!!!");select(StudentList);break;//删除学生成绩case2:System.out.print("请告诉我需要删除学生的学号:");ScannerSid=newScanner(System.in);StringSstudentId=Sid.nextLine();booleanisfindDelete=false;for(inti=0;i