Multiple markers at this line
- a cannot be resolved to a variable
- Syntax error on token "int", delete this
token
- b cannot be resolved to a variable
- Syntax error on token "int", delete this
token
以下是代码:
package 全球我;
public class AAS {
public static void main(String[] args) {
AAS hello=new AAS();
hello.add(18,20);
int sum=hello.add(int a,int b);
System.out.print(sum);
}
public int add(int a,int b){
int sum=a+b;
return sum;}
}
我懂了我懂了,谢谢,不知道怎么关闭问题。。
相关分类