Advertisement
iNoobAvicena

Bunga Transaksi Class

Mar 26th, 2022
889
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package buatbunga;
  2.  
  3. import java.text.SimpleDateFormat;
  4. import java.time.LocalTime;
  5. import java.util.Date;
  6.  
  7. class Transaksi {
  8.  
  9.     private int jumlah;
  10.     private LocalTime waktu;
  11.  
  12.     public Transaksi(int jumlah, LocalTime waktu) {
  13.         this.jumlah = jumlah;
  14.         this.waktu = waktu;
  15.     }
  16.    
  17.     public void detailTransaksi() {
  18.         System.out.println(this.waktu);
  19.         System.out.println(this.jumlah);
  20.     }
  21. }
  22.  
Advertisement
RAW Paste Data Copied
Advertisement