java-可变参数
- 形参列表中出现了“数据类型...形参名”形式的形参,就是可变参数
- 包含可变参数的方法的调用原则:
(1)可变参数的形参部分,可以传入0~n个对应类型的实参,也可以传入对应类型的数组对象
(2)非可变参数的形参部分,原来该怎么传,现在还怎么传
When nothing seems to help, I go look at a stonecutter hammering away at his rock, perhaps a hundred times without as much as a crack showing in it. Yet at the hundred and first blow it will split in two, and I know it was not that blow that did it, but all that had gone before. -- Jacob Riis