the nextLine method will return everything entered up to the Enter key.
If you want to enter the data on one line use the next or nextDouble method to read individual tokens
If you want to use the nextLine method, press Enter after every number has been entered.