Skip to content

Conversation

@iamAlimzhan
Copy link

No description provided.

public class AvengersBase {
// Герой пытается вотий в базу
public void enterBase(Hero hero) throws SecurityBreachException {
if (hero.equals("Loki")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

"Loki".equals(hero)

Copy link
Contributor

Choose a reason for hiding this comment

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

Нельзя сравнивать разные типы между собой

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