+ 3

Java

While writing code, scanner is used for user input. But before user input, as of good practice we mention about input like enter your age etc. But, when we run code at this platform, it mentions “user need input”. Is there any command to detail the requirement as a statement?

17th Jul 2018, 6:53 PM
Miqdad
Miqdad - avatar
4 odpowiedzi
+ 3
In Java in general, yes. But with the code playground, unfortunately no.
18th Jul 2018, 6:33 AM
Andre Daniel
Andre Daniel - avatar
+ 2
In the code playground, unfortunately no. All I do is comment the requirements at the top of the code.
17th Jul 2018, 7:11 PM
Andre Daniel
Andre Daniel - avatar
0
Andre Daniel while going through one code in “Defend the base” challenge written by Brains🇳🇬 , came across some prompt statement to do the same, but the code is wriiten in javascript. Is it possible with java also.
18th Jul 2018, 6:19 AM
Miqdad
Miqdad - avatar
0
18th Jul 2018, 8:03 AM
Miqdad
Miqdad - avatar