package com.method;
public class Demo04 {
public static void main(String[] args) {
Demo04 demo04=new Demo04();
demo04.test(11,2,31,65,41,56);
}
//可变参数
public void test(int... i){
for(int num:i){
System.out.println(num);
}
}
}



