+ 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?
4 odpowiedzi
+ 3
In Java in general, yes. But with the code playground, unfortunately no.
+ 2
In the code playground, unfortunately no.
All I do is comment the requirements at the top of the code.
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.
0
Andre Daniel thanks