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  How do you check if a string contains a substring case insensitive Python?

Leave a Reply

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