Skip to content

Выполненное задание. Попытка 1.#52

Open
NamerPRO wants to merge 3 commits intoYandex-Practicum:masterfrom
NamerPRO:master
Open

Выполненное задание. Попытка 1.#52
NamerPRO wants to merge 3 commits intoYandex-Practicum:masterfrom
NamerPRO:master

Conversation

@NamerPRO
Copy link
Copy Markdown

@NamerPRO NamerPRO commented Sep 27, 2022

Выполненное задание. Попытка 1.

return name;
}

public double getProductPrice() {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Метод не используется, а можно было бы выводить цену товара вместе с именем при завершении расчетов

}
System.out.println("Должно быть как минимум два человека, чтобы разделить счет!\nПовторите ввод еще раз!");
} catch (NumberFormatException exception) {
System.out.println("Введен недопустимый параметр в качестве количества человек! Ожидалось целое число.\nПовторите ввод еще раз!");
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно поделить функцию main на несколько - считывание количества человек, считывание товаров, вывод результата

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants