How do you ignore a case in Java?

use toUpperCase() or toLowerCase() method of String class . Show activity on this post. You ignore case when you treat the data, not when you retrieve/store it. If you want to store everything in lowercase use String#toLowerCase, in uppercase use String#toUpperCase.

Sizin İçin Seçtik  What is case-sensitive and insensitive?

Leave a Reply

Your email address will not be published. Required fields are marked *