SHARE
TWEET

tubes2

a guest Apr 18th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package tubes2;
  2.  
  3. /**
  4.  *
  5.  * @author ADMIN
  6.  */
  7. public class Tubes2 {
  8.     String jenis;
  9.     String warnatempat;
  10.     String Band;
  11.     int harga;
  12.     int jumlah;
  13.    
  14.     public String getBand() {
  15.         return Band;
  16.     }
  17.     public void setBand(String Band) {
  18.         this.Band = Band;
  19.     }
  20.     public String getJenis() {
  21.         return jenis;
  22.     }
  23.    
  24.     public void setJenis(String jenis) {
  25.         this.jenis = jenis;
  26.     }
  27.     public String getWarnatempat() {
  28.         return warnatempat;
  29.     }
  30.     public void setWarnatempat(String warnatempat) {
  31.         this.warnatempat = warnatempat;
  32.     }
  33.    
  34.     public int getHarga() {
  35.         return harga;
  36.     }
  37.    
  38.     public void setHarga(int harga) {
  39.         this.harga = harga;
  40.     }
  41.     public int getJumlah() {
  42.         return jumlah;
  43.     }  
  44.    
  45.     public void setJumlah(int jumlah) {
  46.         this.jumlah = jumlah;
  47.     }
  48.     public void tampil() {
  49.         System.out.println("Band\t: " + getBand());
  50.         System.out.println("Jenis\t: " + getJenis());
  51.         System.out.println("Warnatempat\t: " + getWarnatempat());
  52.         System.out.println("Harga\t: " + getHarga());
  53.         System.out.println("Jenis\t: " + getJenis());
  54.     }
  55.         public void total(){
  56.             System.out.println("total : "+(getJumlah()*getHarga()));  
  57.     }
  58.    
  59. }
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
 
Top