code: public static int indexOf( String[] array, String s )
  	{
  		for (int index = 0; index < array.length; index++)
  		{
  			if( s.equals( array[index] ) )
  			{
  				return index;
  			}
  		}
  		return -1;
  	}
docs: Returns the index of the first occurrence of the specified <tt>String</tt>
  in an array of <tt>String</tt>s.
  
  @param array  array of <tt>String</tt>s to search.
  @param s      the <tt>String</tt> to search for.
  
  @return the index of the first occurrence of the argument in this list,
  or -1 if the string is not found.