Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Приложение Счет в ресторане #120

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

wire-less
Copy link

No description provided.

// Добавляем блюда к счету
Receipt tonightParty = new Receipt();
Scanner dishScan1 = new Scanner(System.in);
Scanner dishScan2 = new Scanner(System.in);

Choose a reason for hiding this comment

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

Лучше давать полям и другим сущностям более говорящие названия, чем dishScan1 и dishScan2, чтобы по названию было понятно, для чего они и чем отличаются. Например, nameScanner, priceScanner

case 7:
case 8:
case 9:
case 10:

Choose a reason for hiding this comment

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

Кейса с 10 не будет, т.к. при получении остатка от деления на 10 % 10 будет 0

@wire-less
Copy link
Author

Замечания исправлены в версии приложения 1.1.

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