-2

I have to read an input file structured like this:

3
1 3 49 2
0 4 2 12
0 7 5 2

where three is the number of test cases so the number of the arrays and the three lines represents the arrays. I have to store each line in a different array to apply a method to test them, so I was wondering using a LinkedList of arrays or something like that, the problem is that i don't know how to properly read the lines and how store them.

Stéphane Millien
  • 2,530
  • 18
  • 29
kicko
  • 1
  • 1
  • 1
    Does this answer your question? [Reading a plain text file in Java](https://stackoverflow.com/questions/4716503/reading-a-plain-text-file-in-java) – Doga Oruc May 11 '21 at 15:59

0 Answers0