forked from Yandex-Practicum/Java-Module-Project-YP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
14 lines (12 loc) · 758 Bytes
/
Main.java
File metadata and controls
14 lines (12 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
System.out.println("Вас приветствует 'Калькулятор счета'\n" +
"Эта приложение позволит вывести список товаров и сумму для каждого из друзей.\n" +
"Контакты для связи с автором: https://t.me/orelboy / [email protected]\n");
AccountCalculator accountCalculator = new AccountCalculator();
int peopleAmount = accountCalculator.setPeopleAmount();
ArrayList<Product> products = accountCalculator.createList();
accountCalculator.showList(peopleAmount, products);
}
}