public static int findAbiScore(String[] supportedAbis,String abi){
  for (int i=0; i < supportedAbis.length; ++i) {
    if (supportedAbis[i] != null && abi.equals(supportedAbis[i])) {
      return i;
    }
  }
  return -1;
}

public static int findAbiScore ( String [ ] supportedAbis , String abi ) { for ( int i = 0 ; i < supportedAbis . length ; ++ i ) { if ( supportedAbis [ i ] != null && abi . equals ( supportedAbis [ i ] ) ) { return i ; } } return - 1 ; }
determine how preferred a given abi is on this system .
