Java Scanner Read String With Spaces, nextLine() which returns the whole line, you can then split up the line with string.