Repository navigation
Conversation
Nick-review
reviewed
May 29, 2024
| Scanner in = new Scanner(System.in); | ||
| System.out.println("На скольких человек необходимо разделить счет?"); | ||
|
|
||
| boolean proverka = true; |
There was a problem hiding this comment.
Лучше не использовать нейминг русских слов в транслите, это в целом ни на что не влияет, но тогда надо и все остальные переменные и функции также называть
можно назвать "check"
Nick-review
reviewed
May 29, 2024
| boolean checkCost = true; | ||
| boolean checkEnter = true; | ||
| float cost = 0; | ||
| // int count = 0; |
There was a problem hiding this comment.
Если не используется, лучше удалить
Nick-review
reviewed
May 29, 2024
|
|
||
| //Функция второй части | ||
| //Что было заказано и по какой стоимости, с точностью до копеек. | ||
| static Map secondInput(){ |
There was a problem hiding this comment.
Можно более осознанно назвать, например, ввод товаров, ввод количества человек и т.п.
Nick-review
reviewed
May 29, 2024
| } | ||
|
|
||
| //Стоимость | ||
| System.out.println("Введите стоимость до копеек(.00)."); |
There was a problem hiding this comment.
Тут можно добавить, в каком формате надо вводить копейки (через запятую или точку)
Nick-review
reviewed
May 29, 2024
| System.out.println("Если вы хотите завершить ввод - наберите \"Завершить\" или введите новый товар."); | ||
| checkCost = true; | ||
|
|
||
| // count += 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Первый Pull request который создан через меню IDE