rt,
class Sport
{
static int output(int stu)
{
return 1;
}
}
public class code3 {
public static void main(String[] args)
{
Sport one = new Sport();
one.output(1);
}
}
不知道我的代码哪里有问题,它总是报错:
Exception in thread "main" java.lang.NoSuchMethodError: 'int Sport.output()'
本人初识java 1ms
,已经调试疯了。