下列程序的运行结果是:
public class test{
private String[] data={"10","10.5"};
public void fun(){
double s=0;
for(int i=0;i
Aerrorl:10.5
Berror2
Cerrorl:10.5 error2
D以上都不对
相关试题
-
下列程序的运行结果是: public class test{ private String[] data={10,10.5}; public void fun(){ double s=
-
下列程序的输出结果是: public class Test{ public static void main(String[] args){ int [] array={2,4,6,8,1
-
下列代码的执行结果是: public class Test { public static void main(String[] args) { int[] x={0,1
-
阅读下列程序 public class Test implements Runnable{ private int x=0; private int y=o; boolean fl
-
给出下列代码,如何使成员变量m 被方法fun()直接访问? class Test { private int m; public static void fun() { ... }