document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. /**
  2.  * Write a description of class transaksi here..
  3.  *
  4.  * @author Muhammad Naufal Arieffaza
  5.  * @version 1.0
  6.  */
  7. public class Transaksi
  8. {
  9.    
  10.     private int saldo;
  11.     public void sDeposit (int jumlah)
  12.     {
  13.         saldo += jumlah;
  14.     }
  15.    
  16.     public void pError()
  17.     {
  18.        System.out.println("Maaf terjadi kesalahan teknis");
  19.         System.out.println("error");
  20.     }
  21.    
  22.     public int jumlahDeposit(int jumlah)
  23.     {
  24.         return jumlah/100000;
  25.     }
  26.    
  27.     public void pDeposit(int jumlah)
  28.     {
  29.       System.out.println("total = ");
  30.       System.out.println("Rp 100000 x " + jumlah/100000 + " lembar");
  31.       System.out.println("Rp " + jumlah);
  32.       System.out.println("1. setor");
  33.       System.out.println("2. batal");
  34.     }
  35.    
  36.     public void pSukses()
  37.     {
  38.       System.out.println("transaksi berhasil");
  39.     }
  40.    
  41.     public void TSTunai()
  42.     {
  43.       System.out.println("setor ke :");
  44.       System.out.println("1. rekening anda");
  45.       System.out.println("2. rekening lain");
  46.     }
  47.    
  48.    
  49.     public void transaksiStruck(int jumlah)
  50.     {
  51.       System.out.println("saldo rekening:   Rp " + saldo);  
  52.       System.out.println("jumlah deposit:  Rp " + jumlah);
  53.     }
  54.    
  55.     public void tLain()
  56.     {
  57.       System.out.println("lanjutkan transaksi?");
  58.        System.out.println("1. ya");
  59.       System.out.println("2. tidak");
  60.     }
  61. }
');