-
Notifications
You must be signed in to change notification settings - Fork 351
Expand file tree
/
Copy pathApplication.java
More file actions
21 lines (18 loc) · 822 Bytes
/
Application.java
File metadata and controls
21 lines (18 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package vendingmachine;
import vendingmachine.controller.CoinController;
import vendingmachine.controller.MoneyController;
import vendingmachine.controller.OrderController;
import vendingmachine.controller.ProductController;
import vendingmachine.model.Products;
public class Application {
public static void main(String[] args) {
CoinController coinController = new CoinController();
ProductController productController = new ProductController();
MoneyController moneyController = new MoneyController();
OrderController orderController = new OrderController();
int[] coins = coinController.initMoney();
Products products = productController.initStock();
int money = moneyController.receiveMoney();
orderController.makeOrder(products, money);
}
}