JSP string search

I’m a PHP developer who was just asked to do some small, one-time updates to a JSP site. I know very little about JSP but have been able to figure a few things about so far.

Does anyone know if there’s a JSP equivalent to the strstr() PHP function? I’m trying to do something to the notion of:

String product = "New 16" Wrench";

if(strstr(product, "wrench")) {
    print.ln("This is a wrench.")'

Thanks in advance!

if( product.indexOf( “wrench” ) > -1 )

or (better but requires Java 1.5 or newer)

if( product.contains( “wrench” ) )