public static void main(String[] args) {
double f = methodC(1234); **//error is on this line & pointing the opening bracket**
System.out.println(f);
}
public static void methodC(double a){
if (a==0){
System.out.println(0);
}
else{
double n= a/10;
double r= a%10;
System.out.println(r);
}
}
每当我执行程序时,我都会不断收到这些错误。不需要代码的答案..只是想知道为什么我会收到这些错误。