Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class main
- {
- public static void main(String args[])
- {
- Scanner scan= new Scanner(System.in);
- int menu;
- System.out.println("Menu");
- System.out.println("");
- System.out.println("1. Pulsa");
- System.out.println("2. Online Shop");
- System.out.println("3. Tiket Kereta Api");
- System.out.println("4. Tiket Pesawat");
- System.out.println("5. Tiket Konser");
- System.out.println("6. I-DELIVERY");
- menu = scan.nextInt();
- switch(menu)
- {
- case 1:
- BeliPulsa pulsa = new BeliPulsa();
- pulsa.beliPulsa();
- break;
- case 2:
- OnlineShop ol_shop = new OnlineShop();
- ol_shop.bayarOlShop();
- break;
- case 3:
- TiketKereta tiket_ka = new TiketKereta();
- tiket_ka.beliTiketKA();
- break;
- case 4:
- TiketPesawat tiket_pesawat = new TiketPesawat();
- tiket_pesawat.beliTiketPesawat();
- break;
- case 5:
- TiketKonser tiket_konser = new TiketKonser();
- tiket_konser.beliTiketKonser();
- break;
- case 6:
- IDelivery i_delivery = new IDelivery();
- i_delivery.bayarIDelivery();
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement