This repository was archived by the owner on Jul 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-18
lines changed
Expand file tree Collapse file tree 2 files changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -7,23 +7,15 @@ public static void dispatchCall(List<Employee> respondents)
77
88 };
99
10- private static Employee [] getFirstResp (List <Employee > respondents )
10+ private static Employee getFirstResp (List <Employee > respondents )
1111 {
12- List < Employee > potEmp = new ArrayList < Employee >();
12+ Employee rep = null ;
1313 for (Employee emp : respondents )
1414 {
15-
15+ if (emp .isAvailable ){
16+ rep = emp ;
17+ }
1618 }
17- return new Employee [0 ];
18- };
19-
20- private static Employee [] getFirstManager (List <Employee > respondents )
21- {
22- return new Employee [0 ];
23- };
24-
25- private static Employee [] getFirstDirector (List <Employee > respondents )
26- {
27- return new Employee [0 ];
19+ return rep ;
2820 };
2921}
Original file line number Diff line number Diff line change 3939public class Employee
4040{
4141 private String levelType ;
42- private Boolean isAvailable ;
43- private Employee supervisor ;
44- private String callNumber ;
45-
42+
43+ public Employee supervisor ;
44+ public String callNumber ;
45+ public Boolean isAvailable ;
4646 public String name ;
4747
4848 public Employee ()
You can’t perform that action at this time.
0 commit comments