I am in the luxourious position that I have the freedom to choose whether to implement the following method as an array of Strings:
public void addColumns(String[] columns)
{
for(String column : columns)
{
addColumn(column);
}
}
Or as a Collection of strings:
public void addColumns(List<String> columns)
{
for(String column : columns)
{
addColumn(column);
}
}
What is the best option to implement this? I'm using Java.