📄 book.java
字号:
package com.Bean;
/**
* @author lynn
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class Book {
String Id;
String Bookname;
String Bookpub;
String Bookauthor;
double Price;
int Quantity;
public Book()
{
Id = "";
Bookname = "";
Bookpub = "";
Bookauthor = "";
Price = 0;
Quantity = 0;
}
/**
* @return Returns the Bookauthor.
*/
public String getBookauthor() {
return Bookauthor;
}
/**
* @param Bookauthor The Bookauthor to set.
*/
public void setBookauthor(String Bookauthor) {
this.Bookauthor = Bookauthor;
}
/**
* @return Returns the Bookname.
*/
public String getBookname() {
return Bookname;
}
/**
* @param Bookname The Bookname to set.
*/
public void setBookname(String Bookname) {
this.Bookname = Bookname;
}
/**
* @return Returns the Bookpub.
*/
public String getBookpub() {
return Bookpub;
}
/**
* @param Bookpub The Bookpub to set.
*/
public void setBookpub(String Bookpub) {
this.Bookpub = Bookpub;
}
public double getPrice() {
return Price;
}
/**
* @param Price The Price to set.
*/
public void setPrice(double Price) {
this.Price = Price;
}
/**
* @return Returns the Quantity.
*/
public int getQuantity() {
return Quantity;
}
/**
* @param Quantity The Quantity to set.
*/
public void setQuantity(int Quantity) {
this.Quantity = Quantity;
}
/**
* @return Returns the Id.
*/
public String getId() {
return Id;
}
/**
* @param Id
* @param Id The Id to set.
*/
public void setId(String id, String Id) {
this.Id = Id;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -