As part of a larger program I need to convert a string list with comma separated values to an Int list where the information must be arranged in a particular way. In other words, I have this string listA:
**ListA(string)**
[0] "4, 0, 7, -1,"
[1] "0, 1, 7, -1,"
[2] "7, 1, 6, -1,"
That I want to convert into this int ListB:
**List B(int)**
[0] {int[4]}
[0] 4
[1] 0
[2] 7
[3] -1
[1] {int[4]}
[0] 0
[1] 1
[2] 7
[3] -1
[2] {int[4]}
[0] 7
[1] 1
[2] 6
[3] -1
I have been trying to figure out how to do it but I did not manage to get it right.
If you could give me hand I would be grateful!
Many thanks!