How to create a list in Java by taking integers separated by spaces? | Sololearn: Learn to code for FREE!

0

How to create a list in Java by taking integers separated by spaces?

I used to create a list by taking Integers separated by spaces in Python using list(map(int,input().split())) . I want to know is there any similar way in Java to accept input without using For loop?

8/8/2022 3:49:17 PM

syed fahad

1 Answer

New Answer

+3

https://code.sololearn.com/cj3faqQtcAS0/?ref=app