Author | Topic |
Registered: May 2002
|
hey java buffs
|
Mon, 05 May 2003 05:56
|
|
didn't post this on a java forum cause all the nerds would laugh me sorry for clogging up toymods with it but someone out there should be able to help me.
I wanna creat an array of objects, as stored in a class file.
class file is called bullet.class
I use the line
bullet b[] = new bullet[10]
and it seems to create the objects fine but when you try to access them it gives me a nullpointerexception error.
I realise that an object created in an array is given a null value but how do I initialise them??
thanks, tim.
|
|
|