Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class OnlineShop
- {
- private int nominal;
- private int kodePesanan;
- Scanner scan = new Scanner(System.in);
- public void bayarOlShop()
- {
- System.out.println("Masukkan Kode Pesanan :");
- kodePesanan = scan.nextInt();
- System.out.println("\n");
- System.out.println("Masukkan Nominal :");
- nominal = scan.nextInt();
- printNota();
- }
- public void printNota()
- {
- System.out.println("\n");
- System.out.println("I-Kios");
- System.out.println("OLSHOP");
- System.out.println("Kode Pesanan : " + kodePesanan);
- System.out.println("Nominal : " + nominal);
- System.out.println("\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement