initialize a multi-dimentional array at declaration
Is there any way I can initialize a multi-dimentional array at declaration.
Is it possible to do the following in a single line?
Vector vClicks[] =new Vector[2];
vCliks[0] =new Vector();
vClicks[1] =new Vector();
I need to globally initialize it and then used it randomly in different methods.
Thanks
Message was edited by:
getusama
[491 byte] By [
getusamaa] at [2007-11-26 15:49:35]

> Is there any way I can initialize a multi-dimentional
> array at declaration.
>
> Is it possible to do the following in a single line?
>
>
>Vector vClicks[] = new Vector[2];
> vCliks[0] = new Vector();
>vClicks[1] = new Vector();
> I need to globally initialize it and then used it
> randomly in different methods.
>
>
> Thanks
>
> Message was edited by:
> getusama
Vector [] v = {new Vector(), new Vector()};
~Tim
Message was edited by:
SomeoneElse