13th Oct 2017, 11:20 PM
Osahon Terry Ewere
Osahon Terry Ewere - avatar
7 ответов
+ 5
It is working. You can split multiple inputs into separate lines.
13th Oct 2017, 11:44 PM
qwerty
qwerty - avatar
+ 5
You need to use println if you want to print the input. Code Playground doesn't work like any other java compiler because it asks for input first.
13th Oct 2017, 11:53 PM
qwerty
qwerty - avatar
+ 5
For Example: 2000 1 2017 10
13th Oct 2017, 11:57 PM
qwerty
qwerty - avatar
+ 2
I tried but just prints the prompt and ignore in the input. Try and run the code and see what I'm talking about
13th Oct 2017, 11:47 PM
Osahon Terry Ewere
Osahon Terry Ewere - avatar
+ 2
Maybe I don't understand the multiple input split here
13th Oct 2017, 11:51 PM
Osahon Terry Ewere
Osahon Terry Ewere - avatar
+ 2
I need the user to input something from the keyboard. It's just a simple age calculator that asks prompts user for inputs. That's why I have the Scanner class
13th Oct 2017, 11:55 PM
Osahon Terry Ewere
Osahon Terry Ewere - avatar
+ 2
Yes correct. It won't take inputs from keyboard
13th Oct 2017, 11:57 PM
Osahon Terry Ewere
Osahon Terry Ewere - avatar