firstNumber and secondNumber are Strings (I am pretty sure you know this). since they are strings, == will only evaluate true if they are the same object. you want to use .equals to compare Strings in the way you intend.
Reputation Points: 85
Solved Threads: 64
Practically a Master Poster
Offline 686 posts
since Mar 2007