Added ID to output from printListOfPersons()

Added ID to output from printListOfPersons()
This commit is contained in:
Togepy95 2017-04-20 16:48:23 +02:00
parent 797742c0dc
commit 799d2ab0fe
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ public class Main {
for (Object o : agents) {
Person person = (Person) o;
System.out.println("Name: " + person.getFirstName()+" "+person.getName() +", Address: " + person.getAddress());
System.out.println("ID: "+person.getId()+" Name: " + person.getFirstName()+" "+person.getName() +", Address: " + person.getAddress());
}
System.out.println("------------------");
}