if(letter == "$PART2")
You can't test a String's contents by using '=='. It only works for primitive types, String is an Object. Use the String class's equal method
Reputation Points: 874
Solved Threads: 352
Posting Maven
Offline 2,758 posts
since Sep 2008