since
java is case sensitive, it makes sense to
test for multiple varitations of an input.
ex:
prompt: Enter Yes to continue.
User input may be:
yes, or Yes, or YES...or a few other ways.
Instead of testing for each different variation, you can use equalsIgnoreCase().
So:
prompt: Enter yes to continue.
if(textfield.getText().equalsIgnoreCase(
string))
do something...
Just thought I'd add that, since up until recently I didn't know about it.