赞
踩
根据DAO分层设计的思路,将系统设计分为以下几个类:
public class StudentSystem { private Scanner scanner = new Scanner(System.in); private StudentDAO studentDAO; public StudentSystem(StudentInfo studentinfo) { } public void start(){ System.out.println("******************功能菜单****************"); System.out.println("1. 新增学生信息"); System.out.println("2. 浏览学生信息"); System.out.println("3. 删除学生信息"); System.out.println("4. 查找学生信息"); System.out.println("5. 修改学生信息"); System.out.println("6. 退出系统"); String choice = scanner.next(); switch (choice){ case "1": addStudent(); start(); break; case "2": showAllStudentInfo(); start(); break; case "3": deleStudent(); start(); break; case "4": searchStudent(); start(); break; case "5": updateStudent(); start(); break
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。