public static int indexOf(String value,String substring){
  return value != null && substring != null ? value.indexOf(substring) : -1;
}

public static int indexOf ( String value , String substring ) { return value != null && substring != null ? value . indexOf ( substring ) : - 1 ; }
returns the index within a string of the first occurrence of a specified substring .
