int jin(int a,int b) { return a+b;}public static void main(String[]args) { duandian an=new duandian(); double xin=an.jin(55,99); System.out.println(xin);
154.0
把double换成int
你定义的xin是double型的,所以会出.0