I need some help reading data from a text file into my ArrayList. The first part with the creating and putting the ArrayList into the text file wor
they keep telling me "theword cannot be resolved" whenever I try to run this
This means that theword is not declared in the scope. You cannot access it to invoke any methods. They have it right. You need to declare theword in a broader scope, or to move the code which depends on theword into the scope where it is been declared. Maybe you've declared it inside an if or while block or so and you're trying to use it outside the block where it is been declared. That ain't going to work.
A more detailed answer may be given whenever you clean up the code so that it's better readable.