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();