Find the error(s) in the following recursive method, and explain how to correct it (them). This method should find the sum of the values from 0 to n.
1 public int sum(int n)2 {3 if (n == 0)4 return 0;5 else6 return n + sum(n);7 }
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.