I've got a bit of a problem with my java code. I am trying to create an object array that allows a line of input from a text file.
This is my code:
code withheld, solution found
That obviously initialises an object array with the size returned from the method.
I try to make a loop that reads each line from the file 'songFile' but returns an error.
Here is my code for the loop:
code withheld, solution found
This is the code for the getLineAmt method:
code withheld, solution found