1. (本题7分)编写计算器类(Calculator),实现:
public class Calculator {
public static int add(int x, int y){
return x + y;
}
public static double add(int x, double y){
return (double)x + y;
}
}
第二个没有你第四小题的没办法弄
1. (本题7分)编写计算器类(Calculator),实现:
public class Calculator {
public static int add(int x, int y){
return x + y;
}
public static double add(int x, double y){
return (double)x + y;
}
}
第二个没有你第四小题的没办法弄