code: public static int getGenre(String str)
  	{
  		for (int i=0; i<GENRES.length; i++)
  			if (GENRES[i].equalsIgnoreCase(str)) return i;
  
  		return -1;
  	}
docs: Tries to find the string provided in the table and returns the
  corresponding int code if successful.  Returns -1 if the genres is
  not found in the table.
  
  @param str the genre to search for
  @return the integer code for the genre or -1 if the genre is not found