What if x
is something besides 0-9? You don’t have a return statement for that case. Add it at the bottom, below your last else if
:
return "Other";
1
solved Missing return statement } in java error [duplicate]
What if x
is something besides 0-9? You don’t have a return statement for that case. Add it at the bottom, below your last else if
:
return "Other";
1
solved Missing return statement } in java error [duplicate]