Repository navigation
попытка №3.1 - #1
Open
artem1klas wants to merge 1 commit into
Open
artem1klas wants to merge 1 commit into
artem1klas wants to merge 1 commit into
Conversation
SeveNChaK
reviewed
Apr 26, 2023
SeveNChaK
left a comment
There was a problem hiding this comment.
В файлах код прыгает, отступы не одинаковые - рекомендую использовать встроенные форматтер. Если ты программируешь в IDE от JetBrains, то можешь пройтись по всем файлам и нажать комбинацию (Windows: Shift + Ctrl + Alt + L, MacOS: Shift + Option + Command + L), затем выбрать, какую часть кода хочешь изменить, и выполнить команду. Среда разработки автоматически сделает нужные отступы и переносы (как она это делает можно изменить в настройках, но дефолтные значения вполне нормальные).
| Calculator calculator = new Calculator(numberPerson); | ||
|
|
||
| System.out.println("Введите через пробел название товара и его стоимость.\nCтоимость в формате 'рубли.копейки'"); | ||
| while (true) { |
| добавляет последний в массив bill; при успешном выполнении возвращает true. | ||
| Если переданный в метод аргумент не валидный возвращает false*/ | ||
| public boolean add(String s){ | ||
| int lastSpace = s.lastIndexOf(" "); |
There was a problem hiding this comment.
⏫ Можно использовать String[] words = s.split(" "); так сразу разделится по словам
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.