I'm not sure if you're still watching this thread or expecting an answer, but I'd like to give you some tips on the code that you've posted.

Firstly I'd add a constant (i.e. a final) int at the...