2 Star 0 Fork 0

BESTI.IS.JAVA2018/20165337

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Example8_4.java 458 Bytes
一键复制 编辑 原始数据 按行查看 历史
yueyuan 提交于 7年前 . week6
public class Example8_4 {
public static void main(String args[]) {
double sum=0,item=0;
boolean computable=true;
for(String s:args) {
try{ item=Double.parseDouble(s);
sum=sum+item;
}
catch(NumberFormatException e) {
System.out.println("˷ַ:"+e);
computable=false;
}
}
if(computable)
System.out.println("sum="+sum);
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/BESTI-IS-JAVA-2018/20165337.git
git@gitee.com:BESTI-IS-JAVA-2018/20165337.git
BESTI-IS-JAVA-2018
20165337
20165337
master

搜索帮助