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.
Read moreHow do I make my character case-sensitive?
To perform a case-sensitive comparison of two char variables, simply use the Equals method , which, by default, performs a case-sensitive comparison. Performing a case-insensitive comparison requires that both characters be converted to their uppercase values (they could …
Read moreHow do I make my character case-sensitive?
To perform a case-sensitive comparison of two char variables, simply use the Equals method , which, by default, performs a case-sensitive comparison. Performing a case-insensitive comparison requires that both characters be converted to their uppercase values (they could …
Read moreIs == case-sensitive in Java?
The equals() method is case-sensitive , meaning that the string “HELLO” is considered to be different from the string “hello”. The == operator does not work reliably with strings. Use == to compare primitive values such as int and char.
Read moreIs == case-sensitive in Java?
The equals() method is case-sensitive , meaning that the string “HELLO” is considered to be different from the string “hello”. The == operator does not work reliably with strings. Use == to compare primitive values such as int and char.
Read moreHow do you make a char ignore a case in Java?
Java String: equalsIgnoreCase() Method
Read moreHow do you make a char ignore a case in Java?
Java String: equalsIgnoreCase() Method
Read more