Conversation
gusar-off
left a comment
There was a problem hiding this comment.
src/main/java/Main.java
Outdated
| public static String GetRubleAddition(double formattedResult) { | ||
|
|
||
| } | ||
| int lastCharacter = (int) (Math.floor(formattedResult) % 10); |
There was a problem hiding this comment.
src/main/java/Main.java
Outdated
|
|
||
| // МЕТОД НИЖЕ РАЗБИРАЕТСЯ С ПРОБЛЕМОЙ "-БЛЯ" | ||
|
|
||
| public static String GetRubleAddition(double formattedResult) { |
There was a problem hiding this comment.
Метожды по код стайлу нужно называть в camelCase
src/main/java/Main.java
Outdated
|
|
||
|
|
||
|
|
||
|
|
There was a problem hiding this comment.
Слишком огромные отступы, достаточно одной пустой строки
src/main/java/Main.java
Outdated
|
|
||
| Scanner scanner = new Scanner(System.in); | ||
|
|
||
| int number = scanner.nextInt(); |
There was a problem hiding this comment.
hasNextInt
src/main/java/Main.java
Outdated
| String name = scanner.nextLine(); | ||
|
|
||
| System.out.println("Введите цену товара"); | ||
| double price = scanner.nextDouble(); |
и снова в бой