class Const {

  public static int indexOfString( String lookup, String[] array ) {
    if ( array == null ) {
      return -1;
    }
    if ( lookup == null ) {
      return -1;
    }

    for ( int i = 0; i < array.length; i++ ) {
      if ( lookup.equalsIgnoreCase( array[i] ) ) {
        return i;
      }
    }
    return -1;
  }

}