class ABC { <p style="margin-left: 60px;">private int a; <p style="margin-left: 60px;">public ABC(int aa) { <p style="margin-left: 120px;">a=aa; <p style="margin-left: 60px;">} <p style="margin-left: 60px;">public int minValue() { <p style="margin-left: 120px;">int min=a[0]; <p style="margin-left: 120px;">for(int i=1; i<a.length; i++) <p style="margin-left: 180px;">if(a[i]<min) min=a[i]; <p style="margin-left: 120px;">return min; <p style="margin-left: 60px;">}
}
public class XXK5 { <p style="margin-left: 60px;">public static void main(String args) { <p style="margin-left: 120px;">int a={20,29,18,25,16,38,24,30}; <p style="margin-left: 120px;">ABC x=new ABC(a); <p style="margin-left: 120px;">int min=x.minValue(); <p style="margin-left: 120px;">System.out.println("min: "+min); <p style="margin-left: 60px;">}
}
程序运行的结果是min:( )。(单选题)
.20.,.
16.,.
23.,.
30
出自:2024年国家开放大学答案