Find the error in the following program:
public class FindTheError
{
public static void main(String[] args)
{
myMethod(0);
}
public static void myMethod(int num)
{
System.out.print(num + " ");
myMethod(num + 1);
}
}
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.