Felix K.

asked • 03/08/22

Hi I need help with AddNums in Java

write a function named addNums that takes a string parameter containing a colon-delimited list of 2-digit numbers(ex. 12:21:14), multiplies together the two digits in each number, and computes the sum of all of the resulting numbers. for example, AddNums(12:23:54") should return (1 * 2) + (2 * 3) + (5 * 4) = 28. Define any variables that you use.

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.