Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/seedu/addressbook/data/AddressBook.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ public void addPerson(Person toAdd) throws DuplicatePersonException {
allPersons.add(toAdd);
}

/*prints out name if duplicate is found*/

public void nameOfDuplicate (ReadOnlyPerson key) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably you missed pushing all the commits since I can't find where this method is being used.

You can try to push your updates into the repo and the PR details will automatically update.

if (containsPerson(key)==true){
String duplicate = "This user is already in the system";
System.out.println(duplicate);
}
}

/**
* Returns true if an equivalent person exists in the address book.
*/
Expand Down