标签:io ar for on ad as new br ui
public class OptionalTrailingArguments {
void f(int required ,String... trailing){
for(String i:trailing){
System.out.println(i);
}
}
public static void main(String[] args){
OptionalTrailingArguments o=new OptionalTrailingArguments();
o.f(0, "adb","dbc");
}
}
结果:
adb
dbc
标签:io ar for on ad as new br ui
原文地址:http://www.cnblogs.com/xingxiaofeng/p/4158463.html