Java Question

[deleted because it was pointless]

[deleted because it was pointless].

Answer

Because you are trying to write else if after else statement. Your else statement should be written as last condition. It's the case that executes at final if any of the above cases was not satisfied.

Comments