title: How to search for a string in an arraylist
body: <p>I want to search for a string in an arraylist.
  My ArrayList contains: </p>
  
  <pre><code>ArrayList &lt;String&gt; list = new ArrayList(); 
  list.add("behold");
  list.add("bend");
  list.add("bet");
  list.add("bear");
  list.add("beat");
  list.add("become");
  list.add("begin");
  </code></pre>
  
  <p>Now I want to search for <code>"bea"</code> and it should return a list containing <code>"bear"</code> and <code>"beat"</code>.
  How can I implement it?</p>