package edu.xucd;
public class Main {
public static void main(String[] args) {
System.out.println(1+1);
System.out.println(1+1);
System.out.println(1+2);
System.out.println(1+3);
System.out.println(1+4);
System.out.println(1+5);
System.out.println(1+6);
System.out.println(add(1,1));
System.out.println(add(1,2));
System.out.println(add(1,3));
System.out.println(add(1,4));
}
//把一系列的步骤放在一个方法当中管理起来,后续调用 该过程叫做方法的封装
public static double add(int a,int b){
return a*0.4+b*0.6;
}
}