Hi everyone,
I'm still at Level 1 of Java language. I have this assignment due in 2 days. I'm not able to solve.
Can anyone help please?
Write a recursive Java method countDigitx that takes two integer numbers as input (a number n and digit x) and returns the number of times digits x occurs in number n:
For example if n=23242 and x=2 then the method should return 3 that is the number of times the number 2 found in n.