Read text from a file and hold in an array
Hi Im trying to read lines from an external file and hold them in an array for future use using java.
I can read the file and print its contents but im not sure on the next step to hold the info in the array.
The information in the file looks similar to this
00001 1 3 2
00002 3 2 1
With first number is the number of a ballot paper and the next three numbers are ranks of three candidates by preference.
Any help much appreciated