📄 bookdetails.java~15~
字号:
package bookshoppingsys;import java.sql.Date;public class BookDetails implements Comparable { //private int book_ID = 0; private String book_type=null; private String book_name = null; private String author=null; private String publishing_house = null; private String description = null; private float value = 0; private float T_value = 0; private float vip_value =0; private int sale_number=0; private String book_image=null; public BookDetails(String book_type, String book_name, String author, String publishing_house, String description, float value,float T_value,float vip_value,int sale_number,String book_image) { // this.book_ID = book_ID; this.book_type = book_type; this.book_name = book_name; this.author = author; this.publishing_house = publishing_house; this.description = description; this.value=value; this.T_value=T_value; this.vip_value=vip_value; this.sale_number=sale_number; this.book_image = book_image; } public String getBook_type () { return book_type; } public String getBook_name() { return this.book_name; } public String getAuthor() { return author; } public String getPublishing_house() { return this.publishing_house; } public String getDescription() { return description; } public float getValue() { return value; } public float getT_value() { return T_value; } public float getVip_value() { return vip_value; } public int getSale_number(){ return this.sale_number; } public String getBook_image(){ return book_image ; } public int compareTo(Object o) { BookDetails n = (BookDetails)o; int lastCmp = author.compareTo(n.author); return (lastCmp); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -