I found out what the stupid error was...I initialized the wrong number of array positions (yeah, i know, stupid enough).
I also found out why the label things were all appearing backwards. I added everything in terms of the board rather than in terms of the individual arrays. And for both the South and the West border, they had to be added starting the left side (for south) and the top (for west) rather than in the direction of the board.
Yeah, really idiotic error O-o
Welcome! Fandoms in the monopoly include Doctor Who, Sherlock, Merlin, Harry Potter, Lord of the Rings and Narnia. You'll see milestones while coding, errors that I have encountered, an "environmental message" , "computer science and careers" that might relate to this program, and how emerging areas of computer science might benefit from this program. Other things include errors that were encountered, the brainstorming before coding. Ryk, happy reading!
Tuesday, 14 May 2013
Program won't run O_o
So confuzzzling. I don't geddit.
I have an array of 40 objects that are received from other classes. And when I try to put something in index 37, it says nullPointerException...
I have an array of 40 objects that are received from other classes. And when I try to put something in index 37, it says nullPointerException...
Subscribe to:
Posts (Atom)