Search:

Type: Posts; User: kurt-hardy

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    2,505

    Re: is there a better way to extend an array?

    That seem pretty simiple. So instead of



    String[] files = new String[1];
    int i = 0;
    while (rs.next())
    {
    files[i] = rs.getString("Filename");
    files = extend(files, files.length+1);
  2. Replies
    5
    Views
    2,505

    Re: is there a better way to extend an array?

    Il have a look at that. Iv never used array list though. can you access them the same as an array? and if it doubles in size would that not leave memory wasted?



    Sorry yes i meant file names.
    ...
  3. Replies
    5
    Views
    2,505

    is there a better way to extend an array?

    I have a database which has 1000s of files stored.
    I need to access a table and store all the values into a dropdown list for a user to view.

    Currently i set the array size to 1 and using an...
Results 1 to 3 of 3