that's crucial code to his program, javapf :D You're trying to compare a String with a character, and it's failing. I'd suggest doing this:


if(!theStack.empty() &&...