... array list and execute the same command based on different parameters dependent on the value of the ...
stackoverflow.com