整数求和 Exercise07_21

 1 import java.util.Scanner;
 2 public class Exercise07_21 {
 3     /**
 4      * @param 冰樱梦
 5      * 时间:2018年12月
 6      * 题目:整数求和
 7      */
 8     public static void main(String[] args){
 9         int total=0;
10         for(int i=0;i<args.length;i++){
11             total+=Integer.parseInt(args[i]);
12         }
13         System.out.println(total);
14     }
15     
16 }

猜你喜欢

转载自www.cnblogs.com/cherrydream/p/10174160.html