K
K
Kurban Mammaev2017-04-09 22:14:32
Java
Kurban Mammaev, 2017-04-09 22:14:32

How to count a column (column) as one line in java and split it into array elements?

You need to read the following line:
1
3 2 -2
5 2 1
32 22
11 29
How to split it into arrays of lines so that 1 line = array element
Scanner nextLine() - refuses to do this, it reads only the first line.
Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question