code: private int parseMonth(String month) {
      for (int i = 0; i < months.length; i++)
        if (months[i].startsWith(month))
          return i;
      return -1;
    }
docs: Convert the name of a month to the corresponding int value.
  
  @return the int representation of the month.