先创建一个实体类Book
public class Book {
private int bookId;
private String bookName;
private double price;
private int storage;
public Book() {
super();
}
public Book(int bookId, String bookName, double price, int storage) {
super();
this.bookId = bookId;
this.bookName = bookName;
this.price = price;
this.storage = storage;
}
public int getBookId() {
return bookId;
}
public void setBookId(int bookId) {
this.bookId = bookId;
}
public String getBookName() {
return bookName;
}
public void setBookName(String bookName) {
this.bookName = bookName;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
public int getStorage() {
return storage;
}
public void setStorage(int storage)