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)
- {
- layar l = new layar();
- mesin r = new mesin();
- Scanner scan= new Scanner(System.in);
- int tampung;
- System.out.println(" ----------------------------------------------\n ~~ Selamat Datang Di Penyok Mart ~~\n ----------------------------------------------");
- while(l.DisplayMenu()==1)
- {
- l.MessageLine("\n - Masukkan Kode Barang : ");
- tampung=scan.nextInt();
- r.tombol(tampung);
- r.openFile();
- r.Logic();
- }
- r.closeFile();
- r.hitung();
- l.MessageLine("\n\n =============================================");
- l.MessageLine("\n (^___^) Terima Kasih Telah Berbelanja (^___^)");
- l.MessageLine("\n =============================================");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement