Hey guys I'm having a bit of touble assigning the toString to a string from an index of an array list, any help would be appreciated.
@Override
public String indentedToString(int level)
{
String answer = " ";
answer = super.indentedToString(level);
answer += "Value " + this.list.toString() + "\n";
for(int i = 0; i < list.size(); i ++)
{
answer += list[i].indentedToString(level + 1);
}
return answer;
}
I keep getting an error in line 9 [array required, but java.util.ArrayList found]
any help ?
Thanks in advance