
public class demo04 {
public static void main(String[] args) {
Demo04 demo04 = new Demo04();
demo04.test();
}
public void test(int...i){
System.out.println(i);
}
}

public class demo04 {
public static void main(String[] args) {
Demo04 demo04 = new Demo04();
demo04.test();
}
public void test(int...i){
System.out.println(i);
}
}
public static void test()
加一个static就好了