Array Question

From: Andrew Dixon - Depictions.net (andrew.dixon_at_NOREPLY.depictions.net)
Date: 12/21/03


Date: Sun, 21 Dec 2003 16:31:55 GMT

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



Relevant Pages

  • Re: seeking advice for "translate" Fortran code to Java code
    ... redefine a common block as needed for each subroutine. ... Still, Java has no pointers, so I ... Java arrays are always what C would call arrays of pointers ... Fortran intrinsics in Java appropriately. ...
    (comp.lang.fortran)
  • Re: Need a little help
    ... for the information to add to the arrays. ... JTextPane textPane = new JTextPane; ... String newArtist = JOptionPane.showInputDialog(null, "Please enter ... }//end public void actionPerformed ...
    (comp.lang.java.programmer)
  • Need a little help
    ... for the information to add to the arrays. ... JTextPane textPane = new JTextPane; ... String newArtist = JOptionPane.showInputDialog(null, "Please enter ... }//end public void actionPerformed ...
    (comp.lang.java.programmer)
  • Re: How to create a "Array of Bytes" in VBScript?
    ... string to logonHours. ... Byte arrays can be read and handled in VBScript (with ... > you can do anything binary with Textstream. ... > any PE file that contains icons. ...
    (microsoft.public.scripting.vbscript)
  • Re: Can someone spot the error here?
    ... C, for example, has no strings, only character arrays. ... My programs generally do a lot of string handling, ... the compiler is strict) or an array of "MinChar .. ...
    (comp.lang.pascal.misc)