# equalsIgnoreCase()

A String method that compares text without treating letter case as different.

## What does **equalsIgnoreCase()** do in Java?

**equalsIgnoreCase()** — A String method that compares text without treating letter case as different.

```java
class AnswerChecker {
    boolean isYes(String answer) {
        return answer.equalsIgnoreCase("yes");
    }
}
```

Level: Apprentice · [More Java terms at this level](https://www.ask-codey.com/glossary/subjects/java/apprentice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/equalsignorecase
