Advertisement
spiny94

Untitled

Sep 12th, 2015
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.01 KB | None | 0 0
  1. List<Operation> operations =  new LinkedList<>();
  2.     private String name;
  3.     private int code;  
  4.     private int date;
  5.     //Withdrawal    w;
  6.     private double initial;
  7.         private double value;
  8.         public Account(String name, int date, double initial){
  9.             this.name=name;
  10.             this.date=date;
  11.             this.initial=initial;
  12.     //withdrawals.add(w);
  13.         //value=initial;
  14.        
  15.         }
  16.    
  17.         public double getValue() {
  18.             // TODO Auto-generated method stub
  19.             return value;
  20.         }
  21.        
  22.         public String toString() {
  23.         return  code+","+name+"," + date + ","+ value;
  24.     }
  25.    
  26.    
  27.    
  28.     public List<Operation> getMovements() {
  29.         return operations;
  30.     }
  31.    
  32.     public List<Deposit> getDeposits() {
  33.        
  34.        
  35.         return deposits;
  36.     }
  37.  
  38.     public List<Withdrawal> getWithdrawals() {
  39.        
  40.         return withdrawals;
  41.     }
  42.    
  43.     public double getInitial() {
  44.         // TODO Auto-generated method stub
  45.         return initial;
  46.     }
  47.    
  48.     public void addValue(double v) {
  49.         // TODO Auto-generated method stub
  50.        
  51.     }
  52.     public int getDate() {
  53.         // TODO Auto-generated method stub
  54.         return date;
  55.     }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement