Can draw basic sequence diagrams

Design → Modelling → Modelling Behaviors

Sequence diagrams - basic

Explain in your own words the interactions illustrated by this Sequence Diagram:

Consider the code below:

class Person {
Tag tag;
String name;

Person(String personName, String tagName) {
name = personName;
tag = new Tag(tagName);
}
}
class Tag {
Tag(String value) {
// ...
}
}

class PersonList {
void addPerson(Person p) {
// ...
}
}

Draw a sequence diagram to illustrate the object interactions that happen in the code snippet below:

PersonList personList = new PersonList();
while (hasRoom) {
Person p = new Person("Adam", "friend");
personList.addPerson(p);
}

Find notation mistakes in the sequence diagram below: