public static int max(int ... a){
for(int i=0;i<a.length;i++){
System.out.print(a[i]);
}
return 0;
}
public static void main(String[] args) {
System.out.println(max(0));
System.out.println(max(0,2));
System.out.println(max(0,2,4));
System.out.println(max(0,2,4,5));
}
网友评论