[求助]编译正常 执行却告知java.lang.NoSuchMethodError:main的程序错在哪里
public class myJ0{
public void main(String[] args)
{
double[] a=new double[3];
a[0]=3.14;
a[1]=3.15;
a[2]=3.16;
double b=average(a);
System.out.println(b);
}
static double average(double[] c)
{
double sum=0;
for(int i=0;i<c.length;i++)
sum+=c[i];
return sum/c.length;
}
}