November 25th, 2012, 09:44 AM
Having trouble finding the cause exception
Please delete, fixed all issues, essentially just typos that I finally discovered
November 25th, 2012, 09:56 AM
Can you post the full text of the error message that shows where the error happens.
How does the code try to keep the index from going past the end of the array?
What variable's value is too big?
Which array? sub or a?
sub[m][n] = a[i-dx/2 + m][j-dy/2 + n]; //#1 array index out of bounds exception
What is the value of the 4 indexes used with those arrays?
Add a println() statement to print out the values of those 4 indexes so you can see what their values are.
November 25th, 2012, 10:06 AM
edit: yep, fixed it completely, nvm, regret making this post, but thanks anyways