JSP第九周作业

package ManageBook;

public class Book {
    
    private int id;
    private String name;
    private double price;
    
    
    public Book() {

    }
    
    public Book(int id, String name, double price) {
        super();
        this.id = id;
        this.name = name;
        this.price = price;
    }
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public double getPrice() {
        return price;
    }
    public void setPrice(double price) {
        this.price = price;
    }

    
    
}

package
ManageBook; import java.util.List; public class Menu { /** * @param args */ List<Book>list; public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("menu"); System.out.println("1 --- add ---"); System.out.println("2 --- delete ---"); System.out.println("3 --- modify ---"); System.out.println("4 --- query ---"); System.out.println("6 --- exit ---"); } }
posted @ 2022-04-30 18:29  计算机1903孙铭泽  阅读(14)  评论(0编辑  收藏  举报