public static final int numberOfProverStatus(int proverNumber,String statusName) throws IllegalArgumentException {
  if (proverNumber > NUMBER_OF_PROVERS || proverNumber < 0) {
    throw new IllegalArgumentException("No prover number " + proverNumber);
  }
  for (int i=0; i < PROVER_STATUSES[proverNumber].length; i++) {
    if (statusName.equals(PROVER_STATUSES[proverNumber][i])) {
      return i;
    }
  }
  throw new IllegalArgumentException("Prover " + PROVER_NAMES[proverNumber] + " has no status "+ statusName);
}

public static final int numberOfProverStatus ( int proverNumber , String statusName ) throws IllegalArgumentException { if ( proverNumber > NUMBER_OF_PROVERS || proverNumber < 0 ) { throw new IllegalArgumentException ( "No prover number " + proverNumber ) ; } for ( int i = 0 ; i < PROVER_STATUSES [ proverNumber ] . length ; i ++ ) { if ( statusName . equals ( PROVER_STATUSES [ proverNumber ] [ i ] ) ) { return i ; } } throw new IllegalArgumentException ( "Prover " + PROVER_NAMES [ proverNumber ] + " has no status " + statusName ) ; }
returns the number of the status named statusname for prover numbered provernumber .
