java 自带的可变参数使用,调用的时候参数可以给:1 没有 2 数组 3 几个字符串
test( );
test( new String[]{"qualification","burglar"} );
test("jock", "cool down", "bechen", "nule", "suprvisor"
public static void test(String... arguments) {
for (int i = 0; i < arguments.length; i++) {
System.out.println(arguments[i]);
}
}