摘要: 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 arg[]){double max=Computer.max(12,45);System.out.println(max);}} 阅读全文