You shouldn't use
to get the address, since it will only get the next token, not the entire address;
you should use nextLine() instead. However, in your particular case it would seem to work, since it will get the number by itself. Also, your code only asks for first and last names. What about the middle name required by the instructions? What happens if the user types in "De Reign" for the last name? Your code will only return "De" and then will get "Reign" as the address.