题目内容
下列程序的运行结果是()。
public class test{
private String[]data={¨10","10.5");
public void fun{
double s=0:
for(int i=0;i<3;j++){
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:
fun:
}catch(Exception e){
System.OUt.println("error2")
}
}
}
查看答案
搜索结果不匹配?点我反馈