首页下载资源后端JAVA学生信息管理系统

ZIPJAVA学生信息管理系统

2301_8087436441.38KB需要积分:1

资源文件列表:

JAVA.学生信息管理系统.zip 大约有3个文件
  1. Main.docx 21.43KB
  2. StudentService.docx 13.49KB
  3. Teacher.docx 14.18KB

资源介绍:

由JAVA语言写的学生信息管理系统 注:没应用I/O流 开始界面 1.学生注册 2.学生登入 3.老师注册 4.老师登入 注册界面 学生 学号 姓名 性别 年龄 成绩年级 密码 老师 编号 姓名 密码 性别 年龄 登入界面 学生 学号 密码 老师 编号 密码 主界面 学生 查看个人信息 退出 老师 查看学生列表 更新学生信息 删除学生信息 添加学生信息 退出
package ssss;
//package student.system;
import java.util.*;
public class Main {
//控制台输入
private static Scanner input=new Scanner(System.in);
//创建一个集合 studentlist 存储学生信息,通过 ArrayList
类去实现 List 接口中的方法
private static List<Student> studentlist=new
ArrayList<Student>();
//声明一个 Student 类对象,记录当前学生的信息
private static Student current=new Student();
private static List<Teacher> teacherlist=new
ArrayList<Teacher>();
private static Teacher curren=new Teacher();
//声明一个 StudentManage 类对象
private static StudentManage studentservice=new
StudentManage();
//标记变量,是否登录的标志
//主界面,菜单栏
private static String StudentMenu(){
System.out.println("==============学生信息管理系
==============");
System.out.println("7.查看个人信息");
System.out.println("10.退出");
System.out.println("===================================
=====");
System.out.print("输入你需要选择的功能编号:");
return input.next();//返回每个功能前的数字
}
private static String StudentandTeacherMenu(){
System.out.println("==============学生信息管理系
==============");
System.out.println("1.学生登录 2.教师登录 ");
System.out.println("3.学生注册 4.教师注册");
System.out.println("===================================
=====");
System.out.print("输入你需要选择的功能编号:");
return input.next();//返回每个功能前的数字
}
private static String TeacherMenu(){
System.out.println("==============学生信息管理系
==============");
System.out.println("5.查看学生列表");
System.out.println("6.更新学生信息");
System.out.println("8.删除学生信息");
System.out.println("9.添加学生信息");
System.out.println("10.退出");
System.out.println("===================================
=====");
System.out.print("输入你需要选择的功能编号:");
return input.next();//返回每个功能前的数字
}
private static boolean isLogin=false;
public static void main(String[] args) throws
InterruptedException {
System.out.println("正在打开学生信息管理系
.......");
Thread.sleep(3000);//线程延时,也可以不写
studentservice.initStudentInfo(studentlist);//
始化,随机生成 10 个学生信息
int
choose=Integer.parseInt(StudentandTeacherMenu());//获取
Menu()方法中的 Integer 整形数据
while(choose<10) {//循环读入不同的数字,表示不同的
功能
switch(choose) {
case 1:
login1();//学生登录
choose=Integer.parseInt(StudentMenu());
break;
case 2:
login2();//教师登录
choose=Integer.parseInt(TeacherMenu());
break;
case 3:
registerstudent();//学生注册
choose=Integer.parseInt(StudentandTeacherMenu());
break;
case 4:
registerteacher();
choose=Integer.parseInt(StudentandTeacherMenu());
break;
case 5:
if(isLogin) {//已经登录
System.out.println("=====>学生列表
");
studentservice.printStudentInfo(studentlist);//打印学生
信息列表
}else {//未登录
System.out.println("请先登录!!!
");
}
choose=Integer.parseInt(TeacherMenu());
break;
case 6:
update();//更新学生信息
choose=Integer.parseInt(TeacherMenu());
break;
case 7:
100+评论
captcha