62,614
社区成员
发帖
与我相关
我的任务
分享
public synchronized static int sum(int a, int b) {
result = a + b;
return result;
}
pulbic class Math {
private static int result = 0;
public static int sum(int a, int b)
{ return a + b; }
}
这样就可以了,