"contains(CharSequence s)" method in String class in JDK 1.4.2
<p>With Java 1.5, the <a href="http://www.ensta.fr/~diam/java/online/jdk/150/api/java/lang/String.html#contains%28java.lang.CharSequence%29" rel="nofollow">contains(CharSequence s)</a> method was added to the String class.  This method</p>

<blockquote>
  <p>Returns true if and only if this string contains the specified sequence of char values.</p>
</blockquote>

<p>How would you do this in versions of Java prior to 1.5, specifically in version 1.4.2?</p>
