Java, 3 dots in parameters
问题 What do the 3 dots in the following method mean? public void myMethod(String... strings){ // method body } 回答1: It means that zero or more String objects (or an array of them) may be passed as the argument(s) for that method. See the "Arbitrary Number of Arguments" section here: http://java.sun.com/docs/books/tutorial/java/javaOO/arguments.html#varargs In your example, you could call it as any of the following: myMethod(); // Likely useless, but possible myMethod("one", "two", "three");