@@ -0,0 +1,589 @@
+package com.codewriters.fdiba.array;%0A%0Aimport java.util.Scanner;%0A%0A/**%0A * Write a program that sums the digits of the numbers in a given array.%0A *%0A * @author Aleksandar Savev %3Csavevjr@gmail.com%3E%0A * @since 04-Feb-2016%0A */%0Apublic class Digits %7B%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        String input = scanner.nextLine();%0A        scanner.close();%0A        %0A        int sum = 0;%0A        for (char c : input.toCharArray())%0A            if (Character.isDigit(c))%0A                sum += c - '0';%0A%0A        System.out.println(sum);%0A    %7D%0A%7D%0A

Add DigitSum