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;} }我懂了我懂了,謝謝,不知道怎么關(guān)閉問題。。
代餐帶返回值的java程序錯哪里了。。
qq_nanranlanW_0
2016-12-18 23:54:18