You know keys in the java. util. HashMap are case sensitive . It means you can keep both “abc” and “ABC” as keys in the same map.
Read moreHow do you make a method case-insensitive in Java?
The Simplest Solution: String. toLowerCase() . In this case, we’ll transform both strings to lowercase and then use the contains() method: assertTrue(src. toLowerCase().
Read more