I have a variable c defined like this:
Object[][] c = {{"asdfa",new Long(0)},{"asdfa",new Long(0)}};
Is there a way to define it so the number of elements is defined in
brackets?
Something like this:
Object[][] c = new {new String(""),new Long(0),new Long(0)}[2];
Joshua Cranmer - 20 Mar 2007 22:24 GMT
> I have a variable c defined like this:
>
[quoted text clipped - 6 lines]
>
> Object[][] c = new {new String(""),new Long(0),new Long(0)}[2];
You can use:
Object[][] c = new Object[2][3];
Daniel Pitts - 21 Mar 2007 01:02 GMT
> gimme_this_gimme_t...@yahoo.com wrote:
> > I have a variable c defined like this:
[quoted text clipped - 10 lines]
> You can use:
> Object[][] c = new Object[2][3];
I'm curious though, are you trying to make an array implementation of
Map<String, Long> ?