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

}

posted on 2013-03-21 21:49  张思宇  阅读(478)  评论(0)    收藏  举报