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 moreAre Keys in HashMap case sensitive?
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 more