please inform a newb
From: Stephen Mayes (stephen_del_at_themayeshouse.us)
Date: 03/24/05
- Previous message: ahmadraheel_at_gmail.com: "Re: RMI solution?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 24 Mar 2005 15:16:48 -0500
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.
- Previous message: ahmadraheel_at_gmail.com: "Re: RMI solution?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]