String.charAt returns a char and the constants are also chars so autoboxing doesn't come into play there. Only at stack.push(stuff);
Campbell Ritchie wrote:I was not quite sure about the use of the == operator, because you usually use the equals() method, but in this case boxing and unboxing will take care of that.
Kurt Van Etten wrote: . . . that's bad form from a OO perspective.