the three dot stays for vargars
. you can access it like a String[]
.
If a method takes as paramter a varargs, you can call it with multiple values for the vargars type:
public void myMethod(String... values) {}
you can call like myMethod("a", "b");
in myMethod values[0]
is equals "a" and values[1]
is equals to "b". If you have a method with multiple args, the vargars argument has to be the last: for instance:
public void myMethod(int first, double second, String... values) {}