Wierd Compiler Error

Hey guys, I’ve got this little chunk of code I’m working on, and as far as I can tell it should work… but Eclipse reports a major compiler error from it for some reason.


private int combatOptionsCount = 0;
	String[] combatOptions =  new String[5];
	combatOptions[combatOptionsCount] = "Tackle it!";
	combatOptionsCount++;
	combatOptions[combatOptionsCount] = "Throw something!";
	combatOptionsCount++;
	//Keep to this format and it should all work out.


It says: “Syntax error on token “;”, { expected after this token”
for the third line down, but I have no idea why it would need that, it’s not a function, or the start of a block, just a declaration. Does anyone have an idea what’s going on here?