public static void main(String[] args) {
// TODO 自动生成的方法存根
double sum=add(10.0, 20.0,20);
System.out.println(sum);
}
public static int add(int num1,int num2) {
return num1+num2;
}
public static double add(double num1,double num2) {
return num1+num2;
}
public static double add(double num1,double num2,double num3) {
int result=(int)(num1+num2+num3);
return result;
}