The String API is everyone's best friend here: String (Java Platform SE 7 )
Type: Posts; User: KevinWorkman
The String API is everyone's best friend here: String (Java Platform SE 7 )
What does this code do? How does it differ from what you expect?
Hint: You're using the equals() method. What do you expect that to do?