<p>Say I have two strings,</p>

<pre><code>String s1 = "AbBaCca";
String s2 = "bac";
</code></pre>

<p>I want to perform a check returning that <code>s2</code> is contained within <code>s1</code>. I can do this with:</p>

<pre><code>return s1.contains(s2);
</code></pre>

<p>I am pretty sure that <code>contains()</code> is case sensitive, however I can't determine this for sure from reading the documentation. If it is then I suppose my best method would be something like:</p>

<pre><code>return s1.toLowerCase().contains(s2.toLowerCase());
</code></pre>

<p>All this aside, is there another (possibly better) way to accomplish this without caring about case-sensitivity?</p>

Yes, contains is case sensitive.  You can use java.util.regex.Pattern with the CASE_INSENSITIVE flag for case insensitive matching:
```
```
Pattern.compile(Pattern.quote(wantedStr), Pattern.CASE_INSENSITIVE).matcher(source).find();
```
```
EDIT:
If s2 contains regex special characters (of which there are many) it's important to quote it first.  I've corrected my answer since it is the first one people will see, but vote up Matt Quail's since he pointed this out.