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);
Type: Posts; User: kurt-hardy
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);
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.
...
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...