Previously next() was being used, which caused the bug of not being able to choose if you want to name the citizens or not if a multipart name was used for the city. Changed to nextLine() for city name and last name. First names still have this issue, but I do not know if the names should be allowed to be multipart or if the buffer should just be cleared.
Previously next() was being used, which caused the bug of not being able to choose if you want to name the citizens or not if a multipart name was used for the city. Changed to nextLine() for city name and last name. First names still have this issue, but I do not know if the names should be allowed to be multipart or if the buffer should just be cleared.