[2145] in java-interest
No subject found in mail header
daemon@ATHENA.MIT.EDU (Joseph Jones)
Tue Sep 26 05:21:54 1995
From: Joseph Jones <jones@bluesky.iwn.com>
To: "'java-interest'" <java-interest@java.sun.com>
Date: Mon, 25 Sep 1995 23:44:47 -0700
I've written a small Rectangle class, and in so doing I've come across =
anumber of errors (mostly due to the fact that I am new to java).
First Error: I wrote my rectangle class in the .java file of another =
program. This compiled fine, but when I loaded the html file that had =
the reference to my program, I received an access violation stating =
that my program had attempted to read the Rect3D.class. I was puzzled, =
as this is exactly what I thought it should be doing?
Second Error(actually user gripe): I pulled out the Rect3D class and, =
after much hair pulling, managed to create it in a new directory under =
the \hotjava\classes directory. After even more hair pulling, and =
checking the mailing list archives, I found out that to declare an array =
of my Rect3D class, I have to do the following:
Rect3D pane[] =3D new Rect3D[4];
for (int i =3D 0; i < 4; i++)
pane[i] =3D new Rect3D();
It seems a little ugly having to new twice just to get an array of my =
class. Why is this? (The mailing list article Iread stated that the =
first new was just creating an array of pointers of my class type, and =
that the second new was needed to create objects of my class to store in =
the array. Seems a bit kludgey to me.)
Thanx,
Joseph Jones
P.S. When will the Beta environment for Win32 be out. I've got the =
Alpha3 releases and am very impressed with the language as a whole. =
Unfortunately, its quit hard to develop applets when the HotJava browser =
just up and dies for no reason.
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com