#Beginner JAVA - Question Help

1 messages · Page 1 of 1 (latest)

ruby ivy
#

I feel the string name/double balance/interest could be wrong - my understanding was that userInput.nextLine will take the whole user input, Name Salary Interest, then immediately after double balance/interest would read the Integer and Decimal respectively

bleak salmon
#

I'm not sure why you're trying to use userInput instead of scnr though. userInput doesn't exist.

#

Wait no it does, my bad

#

You just replicated scnr

ruby ivy
#

I appreciate the help! The nextInt and NextDouble ended up working