I want to check if all elements of two sets of String are equal by ignoring the letter's cases.
Set<String> set1 ;
Set<String> set2 ;
.
.
.
if(set1.equals(set2)){ //all elements of set1 are equal to set2
//dosomething
}
else{
//do something else
}
However, this equality check doesn't ignore the cases of the string. Is there some other way of doing that?