We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I succeeded but had some trouble with the string output, putting a blank '\n' in. Resovled this by using two nextLine()s with the second one reading into my string variable. Is there a better or suggested way or is one nextLine() to eat the '\n' left over from nextDouble() standard?
Day 1: Data Types
You are viewing a single comment's thread. Return to all comments →
Java Day 1 challenge:
I succeeded but had some trouble with the string output, putting a blank '\n' in. Resovled this by using two nextLine()s with the second one reading into my string variable. Is there a better or suggested way or is one nextLine() to eat the '\n' left over from nextDouble() standard?