Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

1task#1

Open
t3mqa wants to merge 2 commits intomain from
dev
Open

1task #1
t3mqa wants to merge 2 commits intomain from
dev

Conversation

@t3mqa
Copy link
Owner

@t3mqa t3mqa commented Sep 9, 2023

No description provided.

@@ -0,0 +1,73 @@
import java.util.Scanner;
public class Calculator {
boolean check;
Copy link

@AleksandrIlinskii AleksandrIlinskii Sep 12, 2023

Choose a reason for hiding this comment

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

Имя должно отображать для чего создана переменная. Это для проверки. Чего?

Copy link

@AleksandrIlinskii AleksandrIlinskii Sep 12, 2023

Choose a reason for hiding this comment

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

Тем более ты ее еще и не используешь
image

void finalOut() {
Calculator calculator = new Calculator();
String end;
if (costPerPeople < 2) end = "бль";
Copy link

@AleksandrIlinskii AleksandrIlinskii Sep 12, 2023

Choose a reason for hiding this comment

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

Если есть несколько if else, их нужно оборачивать в фигурные скобки
https://kotlinlang.ru/docs/control-flow.html

Copy link

Приложение крашится если ввести невалидные данные
image

Copy link

Приложение крашится если ввести неправильную цену
image

}


}
Copy link

@AleksandrIlinskii AleksandrIlinskii Sep 12, 2023

Choose a reason for hiding this comment

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

Поправь форматирование в файле, меню code - reformat code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@AleksandrIlinskii AleksandrIlinskii AleksandrIlinskii left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /