Hi

How can i get a recursive function like this to work:

It should find the sum, then print the sum out inside the function.

```
public static int myMethod(int counter)
{
int sum = 0;
if(counter == 0)
return 0;
else
{
sum = sum + myMethod(counter-1);
System.out.println("Sum is " + sum);
return 0;
}
}
```