str1.toUpperCase().contains(str2.toUpperCase())
UPD:
Original answer was using toLowerCase()
method. But as some people correctly noticed, there are some exceptions in Unicode and it’s better to use toUpperCase()
. Because:
There are languages knowing more than one lower case variant for one upper case variant.