User Input doesn’t work | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

28th Feb 2021, 11:41 AM
Kabelbinder045 _
Kabelbinder045 _ - avatar
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
28th Feb 2021, 12:48 PM
Bahhaⵣ
Bahhaⵣ - avatar