public int getIndex ( String outcome ) { for ( int i = 0 ; i < ocNames . length ; i ++ ) { if ( ocNames [ i ] . equals ( outcome ) ) return i ; } return - 1 ; }
Gets the index associated with the String name of the given outcome .