I have got an ArrayList with Strings and a method that can take in any amount of strings as arguments.
ArrayList<String> list = new ArrayList<String>();
// Filling the list with strings...
public addStrings(String... args) {
// Do something with those Strings
}
Now I would like to pass those strings from my array list to that method. How can I do that? How would I call addStrings()
Note that the amount of strings in the arraylist can vary.