Java: Find longest common prefix in java?
<p>In two strings:</p>

<blockquote>
  <p>"Mary Had a Little Lamb" <br />"Mary Had a Big Lamb"</p>
</blockquote>

<p>should return</p>

<blockquote>
  <p>"Mary Had a "</p>
</blockquote>
