how to get index from list when only part of string is contained in element?
<p>Say I have a string</p>

<pre><code>String s = bob
</code></pre>

<p>and the ArrayList</p>

<pre><code>["alex [available]", "bob [away]", "craig [busy]", "david [gone fishing]"]
</code></pre>

<p>How would I search the list to get the element at [1]? </p>
