code: public int getIndex (String outcome) {
          for (int i=0; i<ocNames.length; i++) {
              if (ocNames[i].equals(outcome))
                  return i;
          }
          return -1;
      }
docs: Gets the index associated with the String name of the given outcome.
  
  @param outcome the String name of the outcome for which the
  index is desired
  @return the index if the given outcome label exists for this
  model, -1 if it does not.