Unfortunately the full class would be a little tricky to post as it's over 5000 lines long (a lot of string literals).
Urgh! Break up your code into logical chunks, otherwise you'll only be facing more and more nasties like this.
Still this might help, here, starting with line 3, is the entire region eclipse underlined in red:
private int combatOptionsCount = 0;
String combatOptions = new String;
combatOptions[combatOptionsCount] = "Tackle it!";
combatOptions[combatOptionsCount] = "Throw something!";
That code doesn't make any sense:
- the first line is (presumably) a class member since it's declared as private.
- the second line may or may not be a class member or a local variable, hard to tell (as previous posters says) without seeing the structure of the class.
- the following lines appear to be statements that ought to be inside a method, so it's no wonder the compiler doesn't like it.
But I'll re-iterate the point about the class, 5000 lines would have you sacked as a professional
, break up the code as best as possible and therefore you only have to deal with smaller chunks that are easier to maintain, clearer to understand and simpler to fix when broke.