做了一个DVD的管理系统,包含了增删改查\借出和归还等功能和日期与字符串的装换问题,使用了最简单的java基础知识,封装了方法,属性,实现了基本的功能。这个系统同样适用于图书馆管理系统,里面也实现了借出和归还的功能。
下面给大家分析一下这个系统:
- 用例1:数据初始化
- 用例2:实现菜单切换
- 用例3:实现查看DVD信息
- 用例4:实现新增DVD信息
- 用例5:实现删除DVD信息
- 用例6:实现借出DVD业务处理
- 用例7:实现归还DVD业务处理
下面是源码:
public class DVDSet {
String name;
int state;
String date;
public DVDSet() {
// TODO Auto-generated constructor stub
}
public DVDSet(String name, int state, String date) {
super();
this.name = name;
this.state = state;
this.date = date;
}
@Override
public String toString() {