搜题
问题   更新时间2023/6/29 19:52:00

class ABC {
private int []a;
public ABC(int []aa) {a=aa;}
public int minValue() {
int min=a[0];
for(int i=1; i if(a[i] return min;
}
}
public class XXK5 {
public static void main(String[] args) {
int []a={20,29,18,25,16,38,24,30};
ABC x=new ABC(a);
int min=x.minValue();
System.out.println("min: "+min);
}
}

【A.】min 18
【B.】min 16

王老师:19139051760(拨打)