Article View: borland.public.jbuilder.java.language
Article #19672Re: Class Arrays
From: Carl Hewitt
Date: Mon, 12 Jan 1998 00:00
Date: Mon, 12 Jan 1998 00:00
39 lines
1465 bytes
1465 bytes
I am not sure I understand, an example would be appreciated.
Did you do this
class myclass {
int x, y
}
class myArrayContainerClass {
myclass[] arrayofmyclass = new myclass[10];
{
myclass[0] = new myclass();
myclass[1] = new myclass();
. . .
}
}
Carl
Jim Hobbs wrote in message <34BA7998.6219275D@logicon.com>...
>First, thanks for opening this request.
>
>Second, I am experiencing problems creating an array of classes. I
>created a small class to store data and perform minor functions. Now I
>want to create an array of that class in the body of my application. The
>problem is that the compiler is recognizing the class as "MyApp.MyClass"
>instead of just "MyClass".Consequently, my application does not find my
>class when it is time to make the array of that class.
>
> I know it might be difficult to completely understand this problem
>without seeing the actual code, but I would greatly appreciate any
>assistance in this problem.
>
>Thanks,
>Jim
>
Technical Details
Message-ID:
<69e1mp$aia21@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34BA7998.6219275D@logicon.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,ae2e938b4f9fcc7c X-Google-Attributes: gidf74b3,public From: "Carl Hewitt" <carl@oop.com> Subject: Re: Class Arrays Date: 1998/01/12 Message-ID: <69e1mp$aia21@forums.borland.com> X-Deja-AN: 315332907 References: <34BA7998.6219275D@logicon.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: None Newsgroups: borland.public.jbuilder.java.language