很简单的一题,直接看代码就可以了
import java.util.Scanner;
public class Main {
static int f(String a,String b){
a=a.replace(",","");
b=b.replace(",","");
return Integer.valueOf(a)+Integer.valueOf(b);
}
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
while(scan.hasNext())
System.out.println(f(scan.next(),scan.next()));
}
}