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就好了
静态方法中之只能调用静态方法
类名首字母没有大写,包中是不是还有其他Demo04这个类