Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

please inform a newb

9 views
Skip to first unread message

Stephen Mayes

unread,
Mar 24, 2005, 3:16:48 PM3/24/05
to
class A{
class B{
boolean flag;
int value;
}
B b[] = new B[10];
public A(){
for (int i = 0; i < 10; i++)
b[i] = new B();
}
}

I'm wondering if there is a more elegant way to instantiate the elements of
b[] than the 'for' loop.


0 new messages