Skip to content

Проектная работа № 1 (правка после 1 ревью) - #92

Open
vladalexeco wants to merge 7 commits into
Yandex-Practicum:masterfrom
vladalexeco:master
Open

vladalexeco wants to merge 7 commits into
Yandex-Practicum:masterfrom
vladalexeco:master

Conversation

@vladalexeco

Copy link
Copy Markdown

Исправлена функция getRightWord.


public Calculator(int numberOfVisitors) {
this.numberOfVisitors = numberOfVisitors;
this.listOfProducts = new ArrayList<>();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Можно перенести инициализацию в место объявления

} else {
switch (valueToInt % 10) {
case 1:
return vars[0];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Использование массива строк интересный вариант, но получается, что в коде стороннему разработчику с первого взгляда непонятно, что значит vars[0]. Обычные переменные или константы могут быть более информативны

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