String partial match
<p>i want partial matching of string in java e.g</p>

<p>String s1 = "method";</p>

<p>String s2 = "this is wonderful method i am using ";</p>

<p>if s1 complete exists in s2 then s2 returns.   any one has algorithm or other flexible code, Thank you in advance.</p>
