Skip to content

Проект 1#1

Open
FencingRex wants to merge 2 commits intomainfrom
dev
Open

Проект 1#1
FencingRex wants to merge 2 commits intomainfrom
dev

Conversation

@FencingRex
Copy link
Copy Markdown
Owner

Android dev project 1 pull-request

@FencingRex FencingRex closed this May 26, 2025
@FencingRex FencingRex reopened this May 26, 2025
this.speed = autoSpeed;
}
}
class Race{
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Лучше разнести по разным файлам, так удобнее с точки зрения чтения кода

Race raceCls = new Race();
finalWinner = raceCls.setRaceWinner(autoName,autoSpeed);
}
/*for (int i=0; i <3; i++){
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Закоментированный код лучше сразу удалять. Хранить закоментированный код в проекте - плохая практика, в случае чего этот код можно восстановить с помощью истории гита

}
}
autoList[i] = new Auto(autoName,autoSpeed);
finalWinner = raceCls.setRaceWinner(autoName,autoSpeed,finalWinner);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

В Android студии можно сделать авто форматирование, нажав ПКМ по нужному классу и выбрав Reformat code, или нажать сочетание клавиш из соответствующего пункта в меню.

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