资源简介
此代码是我们课程设计的内容之一,代码是用GUI实现的对初学者很有帮助,里面的功能强大,涉及各种排序、查找、添加等功能

代码片段和文件信息
package BooksManage;
public class Books {
private String time;
private String name; //书的名称
private String author; //书的作者
private String cost; //书的价格
private String type; //书的类型
public Books(){
this.time=““;
this.name=““;
this.author=““;
this.cost=““;
this.type=““;
}
public Books(String timeString nameString authorString costString type){
this.time=time;
this.name=name;
this.author=author;
this.cost=cost;
this.type=type;
}
public Books(String[] str){
this.type=str[0];
this.name=str[1];
this.author=str[2];
this.cost=str[3];
this.time=str[4];
}
public Books(Books book) {
this.type=book.getType();
this.name=book.getName();
this.author=book.getAuthor();
this.cost=book.getCost();
this.time=book.getTime();
}
public String getTime(){
return time;
}
public String getName(){
return name;
}
public String getAuthor(){
return author;
}
public String getCost(){
return cost;
}
public String getType(){
return type;
}
public String toString(){
return this.getType()+“ “+this.getName()+“ “+this.getAuthor()+“ “+this.getCost()+“ “+this.getTime();
}
public long timeToString(){
long date;
String str=““;
if(time.length()==8){
str=time.substring(04)+0+time.substring(56)+0+time.substring(78);
}else if(time.length()==9&&time.charAt(7)==‘-‘){
str=time.substring(04)+time.substring(57)+0+time.substring(89);
}
else if(time.length()==9&&time.charAt(6)==‘-‘){
str=time.substring(04)+0+time.substring(56)+time.substring(79);
}else if(time.length()==10){
str=time.substring(04)+time.substring(57)+time.substring(810);
}
date=Integer.parseInt(str);
return date;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1772 2009-01-01 10:30 简单个人书管理系统的设计与实现\Books.java
文件 17606 2009-01-16 12:26 简单个人书管理系统的设计与实现\Manager.java
目录 0 2009-01-16 12:26 简单个人书管理系统的设计与实现
----------- --------- ---------- ----- ----
19378 3
相关资源
- 怎样在flex的datagrid中运用checkbox
- 图片存储到数据库保存二进制文件并
- DataGridView财务金额格式显示
- powerdatagrid控件 源码
- In vitro screening of lactobacilli with antago
- WINCC报表(OLE-DB Tag and Alarm Export_V8.x
- ThinkVantage技术白皮书
- 思科力助新西兰Otago大学教育网智能建
- 自制AVR ATmega16 JTAG2008
- ISO18000-6C
- GetDataGraphDigitizer
-
A triphenylamine-ba
sed four-armed molecule - MSP430 JTAGUSB的和并口的与目标板连接的
- Modeling of rapeseed at maturity stage using 3
- 超强amiibo bin资料库 包含TagMo.2.7.0 全
- tgaddsmax缩略图显示插件大全.7z
- getdatagraphdigitizer破解版
- 高分辨率tag36h11
- 恋恋有词思维导图
- datagrid
- AprilTag: A robust and flexible visual fiducia
- sontag_mathematical control theory
- 三辊卷板机
- ADS2009license附件
- Low power Methodology manual
- EasyUI DataGrid及Pagination(源码)
- IEEE 1149.1 标准
- trace32使用手册
- H-JTAG驱动支持usb和并口的驱动
- Infragistics NetAdvantage for Windows Forms 20
评论
共有 条评论