public static int recognizeVendor ( long creditCardNumber ) { int i = findMatchingRange ( creditCardNumber ) ; if ( i < 0 ) { return i ; } return ranges [ i ] . vendor ; }
Determine the credit card company . Does NOT validate checkdigit .