SHARE
TWEET

Untitled

a guest Oct 24th, 2019 113 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2. public class OnlineShop
  3. {
  4.     private int nominal_;
  5.     private int kode_pesanan_;
  6.     Scanner scan = new Scanner(System.in);  
  7.    
  8.     public void bayarOlShop()
  9.     {        
  10.         System.out.println("Masukkan Kode Pesanan :");
  11.         kode_pesanan_ = scan.nextInt();
  12.         System.out.println("\n");
  13.         System.out.println("Masukkan Nominal :");
  14.         nominal_ = scan.nextInt();
  15.         printNota();
  16.     }
  17.    
  18.     public void printNota()
  19.     {
  20.         System.out.println("\n");  
  21.         System.out.println("I-Kios");  
  22.         System.out.println("OLSHOP");  
  23.         System.out.println("Kode Pesanan : " + kode_pesanan_);
  24.         System.out.println("Nominal : " + nominal_);    
  25.         System.out.println("\n");    
  26.     }
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top