Server Help

Trash Talk - Faking struct in Java

Smong - Thu Feb 27, 2003 2:34 pm
Post subject: Faking struct in Java
I've had a go at this and it doesn't work for me when I try and make an array of..hmm..objects? e.g.
customTypeClass[] custom = new customTypeClass[1]; //OK
custom[0].whatever = whatever; //NullPointerException
Dr Brain - Thu Feb 27, 2003 4:24 pm
Post subject:
you never put a object into the array.

put this at the top of main()
tt[0] = new testType();
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group