例子: public void example ( String... str ){} 解释:指参数的长度是可以变化的,类型为 String 。 即形参可以有多个,也可以只是一个,str可以当作一个数组来处理。