public static int recognizeVendor(long creditCardNumber) {
	int i = findMatchingRange(creditCardNumber);
	if (i < 0) {
	    return i;
	}
	return ranges[i].vendor;

    }
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.

@param creditCardNumber number on card.

@return credit card vendor enumeration constant.