Проектная работа №1 #1
Closed
stoutgeneral wants to merge 3 commits intoYandex-Practicum:mainfrom
stoutgeneral:main
Closed
Проектная работа №1 #1stoutgeneral wants to merge 3 commits intoYandex-Practicum:mainfrom stoutgeneral:main
stoutgeneral wants to merge 3 commits intoYandex-Practicum:mainfrom
stoutgeneral:main
Conversation
faritowich
reviewed
Dec 10, 2022
src/main/java/Calculate.java
Outdated
| scanner.nextLine(); | ||
| } else { | ||
| System.out.println("Не корректный ввод! Напишите цену позиции в формате - рубли.копейки, например 10.45."); | ||
| break; |
There was a problem hiding this comment.
Такие отдельные логические блоки, как ввод и обработка количества людей, ввод товаров и вывод результатов лучше выносить каждый в отдельные методы и затем вызывать их. Это позволяет улучшить читаемость кода.
2. Доработал логику метода, который подставляет окончания в зависимости от числа. 3. Переделал логику добавления продукта и его цены. Теперь 1 - запрос кол-ва людей, 2 - запрос названия продукта, 3 - запрос цены продукта, 4 - вывод сообщения с предложением завершить. 4. Список продуктов, теперь выводится без null и "завершить"
2. Доработал логику метода, который подставляет окончания в зависимости от числа. 3. Переделал логику добавления продукта и его цены. Теперь 1 - запрос кол-ва людей, 2 - запрос названия продукта, 3 - запрос цены продукта, 4 - вывод сообщения с предложением завершить. 4. Список продуктов, теперь выводится без null и "завершить"
sn00pg0d
referenced
this pull request
in sn00pg0d/Java-Module-Project-YP
Dec 28, 2022
Домашнее задание Спринт №2 29/12/22
Artemka888
referenced
this pull request
in Artemka888/Java-Module-Project-YP
Mar 14, 2023
tLen-tLen
referenced
this pull request
in tLen-tLen/Java-Module-Project-YP
Aug 20, 2023
tLen-tLen
referenced
this pull request
in tLen-tLen/Java-Module-Project-YP
Aug 20, 2023
ralvveo
referenced
this pull request
in ralvveo/Java-Module-Project-YP
Sep 7, 2023
Liocha
referenced
this pull request
in Liocha/Java-Module-Project-YP
Oct 10, 2023
kirillNay
pushed a commit
to kirillNay/Java-Module-Project-YP
that referenced
this pull request
May 13, 2024
Роман Валеев. Консольное приложение №1
vitalkava
referenced
this pull request
in vitalkava/Java-Module-Project-YP
Nov 17, 2024
arestovv
referenced
this pull request
in arestovv/Java-Module-Project-YP
Jan 6, 2025
anto-smirnova
referenced
this pull request
in anto-smirnova/Java-Module-Project-YP
Apr 15, 2025
PavelTemnikov92
referenced
this pull request
in PavelTemnikov92/Proect-temnikov
Oct 7, 2025
alekstalla
referenced
this pull request
in alekstalla/Java-Module-Project-YP
Nov 4, 2025
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.
No description provided.