Re: Error for a simple array
Ok for some reason initialising it when declaring "int[] strokePos = new int[4] ;" doesn't bring up the error... that doesn't make much sense to me, its like the same thing right? Even though I don't have the error anymore, if anyone could tell me what they think the problem could have been I'd be grateful, I'd like to prevent further mistakes like this as much as possible.
Re: Error for a simple array
I apologize for this but the error returns when I try to put the value 1 at the first position and I'm getting another error just below that saying I need a semi-colon to complete a statement, but I don't believe I do... Please can someone help me? I will post my code if necessary.
Re: Error for a simple array
Sorry for not replying quicker, I have managaed to sort out the problem, but thank you :)
Re: Error for a simple array
He attempted to initialize a field (strokePos = new int[4] ; ) outside a declaration/method/block :p