Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Правила красивого кода CodeStyle #14

Closed
wants to merge 5 commits into from

Conversation

Greenwolf9
Copy link

No description provided.

Copy link
Author

@Greenwolf9 Greenwolf9 left a comment

Choose a reason for hiding this comment

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

незначительные правки

}

double calculateAmount(double value, int places) {
double ScaLe = Math.pow(10, places);
Copy link
Author

Choose a reason for hiding this comment

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

я бы использовала переменную scale

}

void printMenu() {
int period, action;
Copy link
Author

Choose a reason for hiding this comment

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

а вот здесь переменные хорошо бы смотрелись на разных строчках

System.out.println("Выберите тип вклада, 1 - вклад с обычным процентом, 2 - вклад с капитализацией:");
action = scanner.nextInt();

double outDoubleVar = 0;
Copy link
Author

Choose a reason for hiding this comment

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

не очень говорящее название у переменной)) Будет классно ее поменять на что-то более смысловое

public static void main(String[] args) {
new CalculateDeposit().printMenu();
}
}
Copy link
Author

Choose a reason for hiding this comment

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

в остальном все очень красиво и читабельно

@Greenwolf9 Greenwolf9 closed this Jun 5, 2022
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