Instead of setting the size of the array
B b[] = new B[10];
Set the size and add all 10 objects at all once.
B b[] = new B[] {new B(), new B(), new B(), new B(), new B(), new B(), new
B(), new B(), new B(), new B() };
> class A{
> class B{
[quoted text clipped - 10 lines]
> I'm wondering if there is a more elegant way to instantiate the elements of
> b[] than the 'for' loop.