{
if (str.length != 3)
return false;
else if (str.charAt(0) != [a-z])
return false;
else if (!Is_Digit(str. charAt(1)))
return false;
else if (!Is_Digit(str. charAt(2)))
return false;
else return true;
}
The problem seems to be with the following line...comment it out and the rest
works.
else if (str.charAt(0) != [a-z])
if (str.length != 3)
return false;
else if (str.charAt(0) != [a-z])
return false;
else if (!Is_Digit(str. charAt(1)))
return false;
else if (!Is_Digit(str. charAt(2)))
return false;
else return true;
}
The problem seems to be with the following line...comment it out and the rest
works.
else if (str.charAt(0) != [a-z])
Comment