Syntax
Example 1 – Check with Case Sensitive
This will be case sensitive check. As per the below example, Welcome is different than welcome as we know java is a case sensitive programming language.
Example 2 – Check with Ignoring Case
Using this string will be checked with ignoring the case. The function change string to lower case and check if one string contains another case.