Kode Shopping


/**
* Class Shopping
*/
import java.util.Scanner;
public class Shopping
{
    private int nominal_;
    private int kode_pesanan_;
    Scanner scan = new Scanner(System.in);  
   
    public void bayarOlShop()
    {        
        System.out.println("Masukkan Kode Pesanan :");
        kode_pesanan_ = 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 : " + kode_pesanan_);
        System.out.println("Nominal : " + nominal_);    
        System.out.println("\n");    
    }
}



Komentar

Postingan populer dari blog ini

Membuat Profile Data Diri

Toko Sayur 22