java project:
A function is said to be defined recursively if its definitionconsists of two parts: 1) An anchor or base case, in which thevalue of the function is specified for one or more values of theparameter(s). 2) An inductive or recursive case, in which thefunction’s value for the current value of the parameter(s) isdefined in terms of previously defined function values and/orparameter values. Tasks: 1) Write a nonrecursive method thatreturns the number of digits in a nonnegative integer. 2) Write arecursive method that returns the number of digits in a nonnegativeinteger. 3) Write a recursive method public boolhasDecreasingOddDigits(…) that finds
OR
OR