Java Language Varargs (Variable Argument) Specifying a varargs parameter


void doSomething(String... strings) {
    for (String s : strings) {

The three periods after the final parameter's type indicate that the final argument may be passed as an array or as a sequence of arguments. Varargs can be used only in the final argument position.