Ok, well the assignment is to read from a file into an array of strings(whose length is, I think the same as the first line of the file) then I'm assuming tokenizing this to pull out values from each line then take the numerical values average them, sort the names and spit it out.
12
Doe, Joe:78:69:83:72
That's an example from the file, 12 is the number of names listed, then a name, and 4 numbers that need to be extracted out of the array and averaged.
I've managed to get myself totally lost, weee.
a) How the hell do you read a file via Scanner? I know this shouldn't be this hard but I just can't figure it out.
b) How do I read the first line of the file and have that be the length of the array of strings? I don't think this that hard and I think I've sort of figured this out, but geeez.
c) Then how do I continue to read the file starting at the second line filling in the array? This is really where I get lost.
I imagine that if I can figure this much out I can feel my way through the rest of it.
Thanks!