You could also create multiple timers and register an action listener on your class.
The Timer object is meant to activate the action listener of the class in the specified milliseconds.
So you can have one actionlistener and multiple timers with different commands.
About your question of whether you need an array or not... I really doubt you should need your array if, for example, you are directly copying and pasting a table of section A to another table of section A for example. If you're going to be placing values in the exact same section of another table, there should be no reason for additional work of storing values that will be in similar locations.
If you have a way to access the section in your table (for example, by name or number) and the names of the first table are the same as the second, then I suppose you could store - in advance - the names for the table the thread will allocate its next value to then iterate through the names and repeat the process.
I haven't played around with the callable interface that Ezzaral suggested, but I doubt he'd give you any bad advice. My first bet would be to keep a list of references to your table (divided into different array, equal to the amount of threads you want to use) then have each thread iterate through each section.
Note: I suppose you could implement the callable interface in this way--
public class MyClass<T> implements Calllable<T>
and for an example I will use a fictitious array and thread object that will be associated with each other--
//assuming you have an inner class thread--
MyThread thread2 = null;
ArrayList<T> calledValues2 = null; //will use stored information for tables
int indice = 0;
--and you implement the Callable interface in your MyThread class and do something like this--
public T call() throws Exception
{
return calledValues2.get(indice++);
//will retrieve the stored information and incrmeent indice
}
--and just keep calling it for the specified Thread class.
Hopefully that wasn't too confusing. If you understand Threads and how to connect to a Database I assume you will understand.