Skip to content

Conversation

@Gera-sim
Copy link

No description provided.

@Gera-sim Gera-sim changed the title Неделя мучений и вот Проектная работа №1 (Неделя мучений и вот) Oct 31, 2022
@Gera-sim Gera-sim changed the title Проектная работа №1 (Неделя мучений и вот) Проектная работа №1 Nov 2, 2022

while (true) {
if (scanner.hasNextInt()) {
Main.persons = scanner.nextInt();

Choose a reason for hiding this comment

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

Лучше количество человек возвращать как результат метода enterPersons, в Main его передавать в метод consoleProducts, а переменную Main.persons убрать. Так код будет более прозрачным

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