remove stream
This commit is contained in:
parent
4ad8042522
commit
2a92926cad
|
@ -20,7 +20,7 @@ public class HeadDepartment implements Department {
|
|||
}
|
||||
|
||||
public void printDepartmentName() {
|
||||
childDepartments.stream().forEach(Department::printDepartmentName);
|
||||
childDepartments.forEach(Department::printDepartmentName);
|
||||
}
|
||||
|
||||
public void addDepartMent(Department department) {
|
||||
|
|
Loading…
Reference in New Issue