java学生管理系统源代码内容摘要:
, true)。 PrintWriter log = new PrintWriter(fw)。 ()。 //(())。 // Student stu=(Student) o。 (删除 学生 )。 ( 学号: +()+ + 姓名 : +())。 (=====+new Date(0)+=====)。 ()。 ()。 } catch (IOException e) { ()。 } */ } else { (不存在该学生 )。 ()。 } } public void toRemoveStudent(){ (输入要删除学生的学号 )。 InputStreamReader isr = new InputStreamReader()。 BufferedReader br = new BufferedReader(isr)。 String s = null。 try { s = ()。 Scanner tempCourse=new Scanner(s)。 if(()){ int stuId = ()。 (stuId)。 } else{ (错误输入 )。 ()。 } // int stuId = ()。 // (stuId)。 } catch (IOException e) { ()。 } finally{ try { ()。 } catch (IOException e) { ()。 } } } public void changeStudent(Student o){//与 o学号或姓名一样的学生对象用 o替代 int index=0。 for(int i=0。 i()。 i++){ Student temp=(Student) (i)。 if(() == () || ().equals(())){ index=i。 break。 } } Student stu=(Student) (index)。 (index,o)。 /* String s = null。 try { FileWriter fw = new FileWriter(, true)。 PrintWriter log = new PrintWriter(fw)。 ()。 //(())。 //Student stu=(Student) o。 (修改学生信息 )。 ( 学号: +()+ + 姓名 : +())。 (=====+new Date(0)+=====)。 ()。 ()。 } catch (IOException e) { ()。 }*/ } public void toChangeStudent(){ (输入要修改的学生的学号,姓名,各科名称及成绩 以空格分开 )。 (例: 09001 朱良 语文 23 数学 45 英语 78)。 InputStreamReader isr = new InputStreamReader()。 BufferedReader br = new BufferedReader(isr)。 String s = null。 try { s = ()。 Scanner tempCourse=new Scanner(s)。 Student stu = new Student()。 int stuId = ()。 String stuName = ()。 (stuName)。 (stuId)。 LinkedList objList=new LinkedList()。 String courseName=null。 int courseGrade=0。 Course objCourse。 while(() || ()){ courseName=()。 courseGrade=()。 objCourse=new Course()。 (courseName)。 (courseGrade)。 (objCourse)。 } (objList)。 (stu)。 } catch (IOException e) { ()。 } finally{ try { ()。 } catch (IOException e) { ()。 } } } public void searchStudentById(){//查找学号为 id 的学生的信息(学号,姓名,各科成绩) (输入学号: )。 Scanner sc = new Scanner()。 int id = ()。 int index=0。 for(int i=0。 i()。 i++){ Student temp=(Student) (i。java学生管理系统源代码
相关推荐
return out。 } /** * This method initializes a * * @return */ private JTextField getA() { if (a == null) { a = new JTextField()。 (new Rectangle(143, 181, 70, 26))。 } return a。 } /** * This method
第 2章 系统功能介绍 XIII 图 结账报表工作区 日 结账功能提供了对一日营业情况的统计,包括日开台数、各个餐台的消费金额、菜品的消费情况、各个菜品的日销售情况,以及日营业额等,如图 所示。 图 日结账报表 月结帐报表功能提供对一个月营业情况情况的统计,包括日开台总数、日总营业额、日开台的平均消费额、日开台的最大和最小消费额,以及当月的总开台数、月总营业额、以及一个月中的日平均营业额
optimistic, good luck。 loss of sink, Eritrea pany. When you are in adversity, may wish to change a point of view to think everything over to the good Think, because good mentality decided the fate of
话框: “ 用户名或者密码错误 ” ;点击 “ 退出 ” 则退出系统。 在此基础上使用了getRootPane().setDefaultButton()的方法设定回车所对应的按钮。 选择操作对象窗口 登录成功后,出现的窗口是选择操作对象的窗口,即选择对学生这一对象的操作、对老师这一对象的操作或者对学生成绩的操作等。 系统针对不同的用户类别,设置的选择对象的响应操作是不同的
, 30)。 (150, 200, 200, 30)。 (100, 300, 100, 60)。 (200, 300, 100, 60)。 (new ActionListener() { public void actionPerformed(ActionEvent event) { String name=()。 String password=()。 try { .. ()。 }
4 5 6 7 各表详细说明 图书类别表 序号 逻辑字段 物理字段 类型 (长度) 规则 字段说明 1 部门 ID DEPTID 自动编号 主键 自动生成的长整型编号,具有唯 一值 2 部门编号 DEPTCODE 文本 (30) 非空 采用部门编号实现部门间的隶属关系,最顶层部门编号为00 002… 第二层部门编号为00100 001002… 3 部门名称 DEPTNAME 文本 (20) 非空