-
Notifications
You must be signed in to change notification settings - Fork 235
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
base: master
Are you sure you want to change the base?
Conversation
src/main/java/Main.java
Outdated
// Добавляем блюда к счету | ||
Receipt tonightParty = new Receipt(); | ||
Scanner dishScan1 = new Scanner(System.in); | ||
Scanner dishScan2 = new Scanner(System.in); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лучше давать полям и другим сущностям более говорящие названия, чем dishScan1 и dishScan2, чтобы по названию было понятно, для чего они и чем отличаются. Например, nameScanner, priceScanner
src/main/java/Main.java
Outdated
case 7: | ||
case 8: | ||
case 9: | ||
case 10: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Кейса с 10 не будет, т.к. при получении остатка от деления на 10 % 10
будет 0
Замечания исправлены в версии приложения 1.1. |
No description provided.