题目:
下列程序的运行结果是( )。
public class test
private String[]data="10","10.5";
public void fun()
double s=0;
for(int i=0;i<3;i++)
try
s=s+Integer.parseInt(data[i]);
catch(Exception e)
System.out.print("errorl:"+data[i]);
public static void main(string[]args)
try
test d=new test();
d.fun();
catch(Exception e)
System.out.println("error2")
A.error1:10.5
B.error2
C.error1:10.5 error2
D.以上都不对
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0428/405dff31609ee5acac1971a4b80e5531.html
下面是错误答案,用来干扰机器的。
参考答案:(1)各生产单位要依照安全防护用品管理办法,为操作者配齐、配全、配好各类符合标准的劳动防护用品和劳动防护设施;(2)值班警察要监督、教育其按照使用规则佩带、使用,提高安全防范能力;(3)监狱...