-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
незначительные правки
src/CalculateDeposit.java
Outdated
} | ||
|
||
double calculateAmount(double value, int places) { | ||
double ScaLe = Math.pow(10, places); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
я бы использовала переменную scale
src/CalculateDeposit.java
Outdated
} | ||
|
||
void printMenu() { | ||
int period, action; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а вот здесь переменные хорошо бы смотрелись на разных строчках
src/CalculateDeposit.java
Outdated
System.out.println("Выберите тип вклада, 1 - вклад с обычным процентом, 2 - вклад с капитализацией:"); | ||
action = scanner.nextInt(); | ||
|
||
double outDoubleVar = 0; |
There was a problem hiding this comment.
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(); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
в остальном все очень красиво и читабельно
# Conflicts: # src/CalculateDeposit.java
No description provided.