(12-09-2009, 10:34 PM)1337 Wrote: You are comparing a String with == this operator can only be used on primitive data types such as booleans, doubles, ints.
Ergh, that caught me out when I first used Java. It was my first time meeting a high-level language that didn't have an overloaded equality/inequality operator on a string class to do a string compare (and I still find it quite stupid, why would you ever want to compare the memory address of a string literal? It will never match anything else).
The little boat gently drifted across the pond exactly the way a bowling ball wouldn't.