Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Sum {
- public static void main(String[] args) {
- long sum = 0;
- String[] temp;
- for (int i = 0; i < args.length; i++) {
- temp = args[i].trim().split(" ");
- for (int g = 0; g < temp.length; g++) {
- sum += Integer.parseInt(temp[g]);
- }
- }
- System.out.println(sum);
- }
- }
Add Comment
Please, Sign In to add comment