public static boolean contains(String string,String substring){
  return string.indexOf(substring) > -1;
}

public static boolean contains ( String string , String substring ) { return string . indexOf ( substring ) > - 1 ; }
returns true if substring is indeed a substring of string .
