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 ---");
}
}