There is a semicolon at the end of your last condition. Java will treat that semicolon as the body of your condition, and always execute the block in braces as an unrelated block. Change
else if(infixB.charAt(i) == ')');
to
else if(infixB.charAt(i) == ')')