ruhul0

BookStoreApp

Feb 27th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class BookStoreApp {
  4.  
  5.     public static void main(String[] args) {
  6.  
  7.         Scanner sc = new Scanner(System.in);
  8.         // TODO Auto-generated method stub
  9.         int option;
  10.         BookStore book= new BookStore;
  11.         while(true)
  12.         {
  13.             System.out.println("Enter 1 to display. 2 to order. 3 to sell 0 to exit");
  14.             option=sc.nextInt();
  15.             if(option==1)
  16.             {
  17.                 book.display();
  18.             }
  19.             if
  20.         }
  21.  
  22.     }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment