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
BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354
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
Just correcting, he means the equals() method of the String class
stephen84s
Nearly a Posting Virtuoso
1,443 posts since Jul 2007
Reputation Points: 668
Solved Threads: 154