}
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.; } }