Skip to content

My first project#1

Open
AlexZibin wants to merge 6 commits intodevfrom
my_first_project
Open

My first project#1
AlexZibin wants to merge 6 commits intodevfrom
my_first_project

Conversation

@AlexZibin
Copy link
Copy Markdown
Owner

Компилируется, работает, проходит все проверки.

scanner.nextLine(); //throw away the \n not consumed by nextInt()

//*** 2. Добавление товаров в калькулятор
Tovar firstTovar = null;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🍏 Старайся называть классы и переменные на английском языке, а не просто транслитом

//if (name.equalsIgnoreCase("Завершить")) break;

double price;
double ourMagicValue = -3.1415962;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🍏 Это можно сломать и вывести не то сообщение, если просто ввести цену -3.1415962, так что лучше так не делать, подумай как можно переделать

Comment on lines +5 to +6
double price;
Tovar next;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🍏 Это что-то из плюсов) В Java есть реализованный List, лучше используй его и не страдай больше)

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