Write a static recursive method that returns the number of digits in the integer passed to it as an argument of type int. Allow for both positive and negative arguments. For examples, 120 has three digits. Do not count leading zeros. Embed the method in a program, and test it.

Expert Answer

Get this answer with Chegg Study