u/Parking_Plankton_828

How to do multiple inputs in a single line????

I'm doing a school assignment where I have to input 20 click speeds in an integer array. It would work normally if I do each input in a separate line, but it looks too long and I kinda wanna shorten it.

Something like this:
Enter the click speeds:
23 16 54 (you get the idea)

I saw somewhere where you use .split() in Scanner, but we haven't learnt that so we can't use it.

Any help will be appreciated

Edit: By 'too long' I meant that when i input the numbers when it is running
like each input is on a different line so the terminal window would be like too much. I want all inputs on the same line

reddit.com
u/Parking_Plankton_828 — 5 days ago