String.(String后边三个点)的含义
String...(String后面三个点)的含义
List findByExample(T exampleInstance, String... excludeProperty);
public class Main {
public static void main(String[] args) {
//测试,传入多个参数
test("hello", "world", "13sd", "china", "cum", "ict");
}
public static void test(String... arguments) {
for (int i = 0; i < arguments.length; i++) {
System.out.println(arguments[i]);
}
}
}
List findByExample(T exampleInstance, String... excludeProperty);
public class Main {
public static void main(String[] args) {
//测试,传入多个参数
test("hello", "world", "13sd", "china", "cum", "ict");
}
public static void test(String... arguments) {
for (int i = 0; i < arguments.length; i++) {
System.out.println(arguments[i]);
}
}
}