why does this
applet throws NullPointerException? infact whenever i use for loop in init() the applet doesn't run in appletviewer. I am using Windows XP SP2. Here's the code
i am trying to create a space. Here's the code
I think i have allocated memory for every object that i am going to use then why this NullPointerException. I am breaking my head since 1 hour in vain (I've allocated memory for 1000 objects but i am using only 1st object, but i guess that shouldn't be the problem)
Please tell me the reason for this weird behaviour of applet