java学生管理系统数组_Java_学生信息管理系统——数组版——初次编写

1 packageStudent;2 importjava.util.Scanner;3 importjava.util.ArrayList;4 public classStudentManager5 {6 public static voidmain(String[] args)7 {8 Scanner input=newScanner(System.in);9 ArrayList stu=new ArrayList();10 int select=1;11 for(;;)12 {13 face();14 do

15 {16 select=input.nextInt();17 }while(select<1||select>5);18 switch(select)19 {20 case 1:showStudent(stu);break;21 case 2:addStudent(stu);break;22 case 3:deleteStudent(stu);break;23 case 4:updateStudent(stu);break;24 case 5:selectStudent(stu);break;25 }26 }27 }28 private static void addStudent(ArrayListstu)29 {30 Student stu0=newStudent();31 String a, b,f;32 intc;33 boolean d=false,j=true;34 Double e;35

36 Scanner input=newScanner(System.in);37 System.out.println("请依次输入:学号、姓名、年龄、性别、成绩");38 a=input.next();39 b=input.next();40 c=input.nextInt();41 f=input.next();42 e=input.nextDouble();43 if(stu.size()!=

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值