Program: Write a public static method called sumDigits that will return the sum of the digits within a string.
For case, given the String "ab57", the method should return 12, and given "123abc" the method should return 6.
You have to implement a program that returns the sum of the digits - Prepare this program in java programming.