Заменил foreach на for

This commit is contained in:
Struchkov Mark 2022-04-20 14:06:08 +03:00
parent 2e4371da4f
commit 78a081c75e

View File

@ -22,7 +22,9 @@ public class PersonService {
public void showAllPerson() {
System.out.println("\ользователи системы:");
names.values().forEach(System.out::println);
for (Person person : names.values()) {
System.out.println(person);
}
System.out.println();
}