Not to be picky about syntax of the answer of hexacyanide but as comparing a string to be equal to "e" the more logic and cleaner in my opinion is:
if (e.equals("e")) { /* e == "e" */ }
Because it says: If the string e that we found is what we are looking for, in this case "e", then do something.
Another reason is that "e" is just an array of characters at that point and e is a String already. Now i'm not 100% sure about this but i think that the equals method has some more efficient overriden method somewhere for character arrays. In the case you put "e" in front of .equals, "e" is first converted to a String and then evaluated, that is if the compiler doesn't optimize that.