remove stream

This commit is contained in:
mherbaghinyan 2018-05-08 09:15:51 +04:00
parent 4ad8042522
commit 2a92926cad
1 changed files with 1 additions and 1 deletions

View File

@ -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) {