I am trying to compare user input to variables that i have defined.
I want jave to ignore the cases when the strings are compared. Does anybody have any suggestions/hints?
Printable View
I am trying to compare user input to variables that i have defined.
I want jave to ignore the cases when the strings are compared. Does anybody have any suggestions/hints?
You can use "equalsIgnoreCase(String anotherString)" method of Strings class. It works just like equals method except, it makes case-insensitive comparisons. Please post a reply saying whether this solved ur problem or not.
Yes this is what i needed thank you very much.:cool: