You need to do some work on how you ask a question. Firstly, you haven't botheterd to show us the code that generates the exception and you also haven;t provided the actual error message, but rather your vague approximation. If you're being told that you're using an array index that exceeds the upper bound then that's what you're doing. If you expect us to be able to tell you why then we need tyo be able to see the code that's doing it. In future, please explain what you're actually trying to achieve, how you're trying to achioeve it (including ALL and ONLY the code relevant to the problem) and what happens when you try (including the actual error message and where exactly it ocurs).