JAVA 实验报告1040501218 钱胜民(8)
发布时间:2021-06-06
发布时间:2021-06-06
}
public static void main(String [] args){ }
System.out.println(max(2,3,1));
运行结果是:
2. 程序如下:
package shiyan3_2;
public class Staff {
private static String name; private static String number; private static float pay;
public void setName(String name){ this. = name; }
public String getName(){ return this.; }
public void setNum(String num){ this. = num; }
public String getNum(){ return this.; }
public void setPay(float pay){ this. = pay; }
public float getPay(){ return this.; }
public String toString(){
return this. + ',' + this. + ',' + this.; } }
上一篇:申论答题纸