I really need help fixing this line of my code, I keep getting these two errors:
First Error: array required, but String found if(x.length() == 0 && y.length() > 0 && y[0] == "*")
Second Error: no suitable method found for replace(int,int) String newY = y.replace(0,1); any help would be appreciated
//Second string is empty and there is wildCard character
if(y.length() == 0 && wildCard)
{
return true;
}
if(x.length() == 0 && y.length() > 0 && y[0] == "*")
{
String newY = y.replace(0,1);
return match(x, newY, true);
}