A better way to do what exactly? Your code will not add "Barney" twice (but it will add "barney" or "Barney " if asked to). The list will not contain empty strings unless your code is run with an empty string and one does not already exist.So I'll expand this else code to check which line in the list isEmpty...or is there any better way?
Bookmarks