Mark Kramer wrote:A switch statement will fall through all cases until a break is encountered. In this case your switch has a default which has a return and none of your cases have a break. Therefore whether you match a case or not, your switch will always eventually fall through to the return in your default case.
Actually that won't happen as all the case labels themselves have return statements in them. The thing is, whatever the value of
i is passed to
f method, your code will not be able to reach line no 11...