public class YY {
private int f(){
int[] s={18,23,21,19,25,29,17};
int max=0;
for(int i=0;i<s.length;i++){
if(max<s[i])
max=s[i];
return max;
}
}
public static void main(String[] args){
YY pp=new YY();
pp.f();
System.out.println("最大年龄为:"+pp.f());
}
}
wl_ht
相关分类