I have to write a recursive toString method for an array of objects. I understand how recursion works I've done other recursive methods correctly in the same program I'm just lost on this one method. The output for this method is blank. Also there is another non-recursive toString() in another class that converts one House object to String.
public String toString(House[] list, int n)
{
if (n == 0)
return "";
else
{
toString(list, n-1);
return toString(list, n-1);
}
}