Original Post
Hey all just a quick question, from all my poking and prodding of java there is one thing it appears it can''t do and Im hoping i''m wrong. anyways say I have a class
class point3d
{
double x; double y; double z;
public point3d()
{
x = y = z = 0.0;
}
if I do
point3d[] blah = new point3d[10];
and then try and access blah[2].x i get a null pointer exception.
im just curious if there is a way to do this? I know you can with the base objects in Java, strings, ints and such but that is all native code I believe. I allready found a work around for my problem but it would be nice to know if I was wrong or not on this.
Tim Holwig
fabel@mindspring.com