What will this method call output?

public int mysteryMethod(String x, char y)
{
int z = 1;
for(int i = 0; i < (); i++)
{
if(x.charAt(i) == y)
{
z++;
}
}
return z;
}

mysteryMethod(Karel The Dog, 'e');
a) 1
b) 3
c) 4
d) 5

Q&A Education