0
User Input doesnât work
My Program should ask the user to input 5 numbers, theyâre going to be stored in the declared array. After that the second array should double the user input numbers, but it doesnât work, Iâve used the Java.io.* Import with a buffered reader, could someone help me figure out whatâs wrong and what I could improve? https://code.sololearn.com/cy4WvevgIAlw/?ref=app
1 Answer
+ 1
your code is fine, it's just the way code playground gets input. it has to be at once. the code is not going to ask you to enter a number each time.
run it and type numbers each one in a new line like :
1
2
3
4
5
then submit