I\'m writing a program which allows the user to input his data then outputs it. Its 3/4 correct but when it arrives at outputting the address it only prints a word lets say
I would use Scanner#nextLine opposed to next for your address attribute.
next
address
This method returns the rest of the current line, excluding any line separator at the end.
Since this returns the entire line, delimited by a line separator, it will allow the user to enter any address without any constraint.