Remove the semicolon from the end of this line:
if (stageCode.equals("24231"));
and from this line:
if (stageCode.equals("75832"));
Java will treat the semicolon as the entire body of the if
condition here. Then the block in braces following it will always be executed, because it's not attached to the if
condition as you expected it to be.