SHARE
TWEET

Function DB

a guest May 22nd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.example.foodbares;
  2.  
  3. public class Report {
  4.    
  5.     private long id;
  6.     private String nama_report;
  7.     private String total_harga;
  8.    
  9.     public long ambilId(){
  10.         return id;
  11.     }
  12.    
  13.     public void setId(long id){
  14.         this.id = id;
  15.     }
  16.    
  17.     public String getNama_report(){
  18.         return nama_report;
  19.     }
  20.    
  21.     public void setNama_report(String nama_report){
  22.         this.nama_report = nama_report;
  23.     }
  24.    
  25.    
  26.     public String getTotal_harga(){
  27.         return total_harga;
  28.     }
  29.    
  30.     public void setTotal_harga(String total_harga){
  31.         this.total_harga = total_harga;
  32.     }
  33.    
  34.     @Override
  35.     public String toString()
  36.     {
  37.        
  38.         return "Nama : "+nama_report+" & Total Biaya: Rp."+total_harga;
  39.     }
  40.    
  41. }
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