Skip to content

e#1

Open
kostya23azaza wants to merge 1 commit intomasterfrom
branch
Open

e#1
kostya23azaza wants to merge 1 commit intomasterfrom
branch

Conversation

@kostya23azaza
Copy link
Owner

No description provided.

Copy link

@OKrylov OKrylov left a comment

Choose a reason for hiding this comment

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

По ДЗ все отлично, замечаний нет

workers[3] = new Employee("Дарт Вейдер", "Ситх", "DarkSide.com", "+7-911-812-09-23", 123456, 42);
workers[4] = new Employee("Ivanov Ivan", "Engineer", "ivivan@mailbox.com", "892312312", 30000, 30);
for (int i = 0; i < workers.length; i++) {
if (workers[i].getAge() > 40) workers[i].printEmployee();
Copy link

Choose a reason for hiding this comment

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

40 лучше вынести в константу private static final int MAX_AGE = 40;

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