?? book.java
字號:
package myBean;
import java.io.*;
public class Book implements Serializable {
/* 私有字段 */
private String bookId;
private String typeName;
private String name;
private String writer;
private String publisher;
private float day;
private float price;
private float onsale;
private float newprice;
private String description;
/* JavaBean屬性訪問方法 */
public String getBookId() { return bookId; }
public void setBookId(String bookId) { this.bookId = bookId.trim(); }
public String getTypeName() { return typeName; }
public void setTypeName(String typeName) { this.typeName = typeName; }
public String getName() { return name; }
public void setName(String name) { this.name = name; }
public String getWriter(){return this.writer;}
public void setWriter(String writer){this.writer=writer;}
public String getPublisher(){return this.publisher;}
public void setPublisher(String publisher){this.publisher=publisher;}
public float getDay(){return this.day;}
public void setDay(float day){this.day=day;}
public float getPrice(){return this.price;}
public void setPrice(float price){this.price=price;}
public float getOnsale(){return this.onsale;}
public void setOnsale(float onsale){this.onsale=onsale;}
public float getNewPrice(){return this.newprice;}
public void setNewPrice(float newprice){this.newprice=newprice;}
public String getDescription() { return description; }
public void setDescription(String description) { this.description = description; }
/**共公方法*/
public String toString() {
return getName();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -