I know we can write if, else if, else if
with a ignore case.
if (someString.equals("otherString", ignoreCase = true)) {
}
I am very curious about this, how to write a when(in Java it is a switch) condition with ignoring the case.
I know we can write if, else if, else if
with a ignore case.
if (someString.equals("otherString", ignoreCase = true)) {
}
I am very curious about this, how to write a when(in Java it is a switch) condition with ignoring the case.
Copyright © 2021 Jogjafile Inc.
There are a couple of options:
Translate strings to lower (or upper) case:
Directly use
equals
method: