Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class BookStoreApp {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- // TODO Auto-generated method stub
- int option;
- BookStore book= new BookStore;
- while(true)
- {
- System.out.println("Enter 1 to display. 2 to order. 3 to sell 0 to exit");
- option=sc.nextInt();
- if(option==1)
- {
- book.display();
- }
- if
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment