Re: Array Question

From: Andrew Dixon (da644_98_at_NOREPLY.yahoo.co.uk)
Date: 12/21/03


Date: Sun, 21 Dec 2003 22:02:03 -0000

Excellent. Thanks. All working now.

Best Regards

>>> Andrew Dixon

"Chris" <chris2k01@hotmail.com> wrote in message
news:0hoFb.15037$ss5.8580@clgrps13...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Andrew Dixon - Depictions.net wrote:
>
> > Hi Everyone.
> >
> > Bit new to Java and I have question about arrays. I have wrote some
> > code to look for certain substrings within a larger string which
> > work fine. I would like to store each substring in an array, however
> > I don't know how many there will be. All the example I have found
> > for arrays only show how to predefine the size of the array, however
> > I would like to expand it by one each time I need to. Can anyone let
> > me know how to do this.
> >
> > Thanks
> >
> > Best Regards
> >
> >>>> Andrew
>
> Hi,
> I think you'd like to try using java.util.ArrayList. It's really
> simple to use, you can keep adding objects over and over without
> knowing the initial size, and you can convert it to a real array when
> you're finished very easily. Take a look!
>
> - --
> Chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (GNU/Linux)
>
> iD8DBQE/5eaQwxczzJRavJYRAqqbAJ46RB8qDqoy5FjXtZ2cFa2rNGan6QCfa67F
> hKzHPH2mx0Ufg8RKWbttnrc=
> =G2b8
> -----END PGP SIGNATURE-----



Relevant Pages

  • Re: count2.asm
    ... > is to count characters in a file of any type, ... > bytecount and an array of 256 DWORDS and it dumps the result in the ... Regards ...
    (alt.lang.asm)
  • Re: Picking Element from Array one by one
    ... >>Rita wrote: ... >>> I am getting some values from loop and i store all that value in array ... >>then sort on keys of %and print key value pair ... Regards ...
    (comp.lang.perl.misc)
  • Re: value of #s in column if between dates
    ... No need to array enter it ... > format and didn't know how. ... >> Regards, ... >> Peo Sjoblom ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Array of value types
    ... Dennis JD Myrén ... >> to create the structure instance from a byte array. ... > able to pass that as an array of that type by interop, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Increment an Array question
    ... > Regards and thanks. ... > "Tom Ogilvy" wrote in message ... >> I am not sure what role "i" plays, but you increment that and don't use ... >>> to an array. ...
    (microsoft.public.excel.programming)