10.11
作者:互联网
package com.cuifurong.method;
public class Demo6 {
public static void main(String[] args) {
Demo6 demo6 = new Demo6();
Demo6.add(2,3);
Demo6.multiply(8,2);
Demo6.sub(7,6);
Demo6.division(4,6);
}
public static void add(double m,double n){
System.out.println("m+n="+m+n);
}
public static void multiply(double m,double n){
System.out.println("m*n="+m*n);
}
public static void sub(float m,float n){
System.out.println("m-n="+m-n);
}
public static void division (double m,double n){
System.out.println("m/n="+m/n);
}
}
一段错误代码
标签:double,void,System,static,10.11,Demo6,public 来源: https://www.cnblogs.com/cfrxuexijava/p/15391740.html