Write a public static method called sumdigits that will


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.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a public static method called sumdigits that will
Reference No:- TGS0959840

Expected delivery within 24 Hours