please inform a newb

From: Stephen Mayes (stephen_del_at_themayeshouse.us)
Date: 03/24/05

  • Next message: Alex Molochnikov: "Re: RMI solution?"
    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.


  • Next message: Alex Molochnikov: "Re: RMI solution?"