Example 4-6

来源:互联网 发布:c语言点滴 百度云 编辑:程序博客网 时间:2024/06/05 06:44
class Computer{
double x,y;
static double max(double a,double b){
return a>b?a:b;
}
}
class Example4_6{
public static void main(String args[]){
double max=Computer.max(12,45);
System.out.println(max);
}
}