I'm looking for something that is surely very simple, but I don't know the best way to do it.
I could have 2 arrays of strings (that I don't know size at start), containing something like:
down[0]:"file1"
down[1]:"file2"
...
up[0]:"file3"
up[1]:"file4"
...
But I'd like them in the same array like:
array["down"][0]:"file1"
array["down"][1]:"file2"
array["up"][0]:"file3"
array["up"][1]:"file4"
And insert data with:
array[mykey].put(filename);
And loop through the data with:
for (String st : array["down"])
...
for (String st : array["up"])
...
Thanks for your ideas.