I have a list which contains Strings ABC:123,abc:123now create a set and etc: Set set new HashSet() You can use a TreeSet with the String.CASEINSENSITIVEORDER flag set.Kotlin/Java, string array not yet initialized at method call Sorting time always different from first Set() Map()Similar topics. Re: Case-insensitive string compare? Case insensitive set of strings.Case-insensitive dict, non-destructive, fast, anyone? Browse more Java Questions on Bytes. Computer Programming - Java Programming Language - Case Insensitive String sample code - Create a Java Program with Java Code Examples - Learn Java Programming. I want create custom HashSet class in java, The class contain all override method of Hashset Class Those behavior as per my requirement.Set set new TreeSet<>(String.CASEINSENSITIVEORDER) user2336315 Jun 14 14 at 15:09. Set Names new HashSet
So the contains() method actually use equals() method to check equality. The implementation should have no external dependencies, that is use only standard Java.return vals.contains(String.valueOf(value)) Override public String get(Nonnull Object key) .return new HashSet<>(data.values())new ConcurrentSkipListMap(String.CASEINSENSITIVEORDER). Two java- perform a hashset.