-
Notifications
You must be signed in to change notification settings - Fork 3
/
Coffee.java
51 lines (38 loc) · 872 Bytes
/
Coffee.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
public class Coffee {
private int milkAmt, coffeeAmt, waterAmt, chocolateAmt;
String name;
public Coffee(int milk, int coffee, int water, int chocolate, String name){
milkAmt = milk;
coffeeAmt = coffee;
waterAmt = water;
chocolateAmt = chocolate;
this.name = name;
}
public int getMilkAmt() {
return milkAmt;
}
public int getCoffeeAmt() {
return coffeeAmt;
}
public int getWaterAmt() {
return waterAmt;
}
public int getChocolateAmt() {
return chocolateAmt;
}
public String getName(){
return name;
}
// public void setMilkAmt(int milk){
// this.milkAmt = milk;
// }
// public void setCoffeeAmt(int coffee){
// this.coffeeAmt = coffee;
// }
// public void setWaterAmt(int water){
// this.waterAmt = water;
// }
// public void setChocolateAmt(int chocolate){
// this.chocolateAmt = chocolate;
// }
}