Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. package helloworldapp;
  2.  
  3. public class Ingredient {
  4.  
  5.     private String name;
  6.     private String quantity;
  7.    
  8.     public String getName() {
  9.         return this.name;
  10.     }
  11.  
  12.     public void setName(String name) {
  13.         this.name = name;
  14.     }
  15.  
  16.     public String getQuantity() {
  17.         return this.quantity;
  18.     }
  19.  
  20.     public void setQuantity(String quantity) {
  21.         this.quantity = quantity;
  22.     }
  23.    
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement