Posted October 13, 201312 yr Hello, I was working with multidimensional array when I came upon this error http://pastebin.com/0ZLr76JC The affected line can be found here I don't know what's wrong because the variable is being initialized here Here's the rest of my code If you need it http://i.imgur.com/gWwyMMO.jpg[/img]
October 13, 201312 yr Dude: parsedFile.length != parsedFile[0].length Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
October 13, 201312 yr Hi I would suggest that you add a breakpoint where the error occurs, and look to see what your variables contain. One of them is not the size you expect. If you're not using a debugger, add some diagnostic code that checks if the array index is in bounds before using it, if not writes an error message containing information about the contents of the array. This should show you pretty quickly where the problem lies. -TGG
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.