java程序改错(一处错误)
1:publicclassC{intp;publicvoidsetP(intp){p=p;}}2:publicclassShowErrors{publicvoidmeth...
1:
public class C{
int p;
public void setP(int p) {
p = p;
}
}
2:
public class ShowErrors{
public void method1() {
Circle c;
System.out.println("What is radius " + c.getRadius());
c.new Circle();
}
} 展开
public class C{
int p;
public void setP(int p) {
p = p;
}
}
2:
public class ShowErrors{
public void method1() {
Circle c;
System.out.println("What is radius " + c.getRadius());
c.new Circle();
}
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询