Originally posted by Debbie Chaney:
...equalsIgnoreCase is supposed to be used with a boolean...
equalsIgnoreCase is a method in the String class that
takes an Object (presumably a String) as an argument and
returns a boolean. But in your situation, you appear to be using primitive chars rather than Strings.
If you're using chars, you could simply
test for either case of 'Y'...
if( (myChar == 'Y') || (myChar == 'y') ) {...}
Note that char literals are enclosed in single quotes.