重载之不定长参数法

2018-09-28  本文已影响2人  平凡的鱼仔
public static int add(int... a){return 1;}
//int与a中间的三个点代表不定长
上一篇 下一篇

猜你喜欢

热点阅读