but how to solve this?
Write code that reads a line, parses/splits it and puts its values into the list.
The code needs to know if there are multiple tuples on a line
of if there is only one tuple on each line.
Use the results of the split to determine which. 2 elements == one tuple
otherwise number of tuples = array.length/2