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,774 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354
Skill Endorsements: 13
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,444 posts since Jul 2007
Reputation Points: 668
Solved Threads: 156
Skill Endorsements: 10