Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Проектная работа No1#110

Open
Gera-sim wants to merge 3 commits intoYandex-Practicum:master from
Gera-sim:master
Open

Проектная работа No1 #110
Gera-sim wants to merge 3 commits intoYandex-Practicum:master from
Gera-sim:master

Conversation

@Gera-sim
Copy link

@Gera-sim Gera-sim commented Oct 31, 2022

No description provided.

@Gera-sim Gera-sim changed the title (削除) Неделя мучений и вот (削除ここまで) (追記) Проектная работа No1 (Неделя мучений и вот) (追記ここまで) Oct 31, 2022
@Gera-sim Gera-sim changed the title (削除) Проектная работа No1 (Неделя мучений и вот) (削除ここまで) (追記) Проектная работа No1 (追記ここまで) Nov 2, 2022

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

@MagicUnderHood MagicUnderHood Nov 3, 2022

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 убрать. Так код будет более прозрачным

Gera-sim reacted with thumbs up emoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@MagicUnderHood MagicUnderHood MagicUnderHood left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Comments

AltStyle によって変換されたページ (->オリジナル) /