In my Android application, I am trying to check if the bank account number is IBAN. This can be done using Apache IBANCheckDigit . Now I will try to do this:
IBANCheckDigit a = new IBANCheckDigit();
try {
String checkDigit = a.calculate("MY_IBAN_NUMBER_HERE");
Boolean b = a.isValid(checkDigit);
Log.e("isValid: ", b.toString());
} catch (CheckDigitException e) {
Log.e(this, "THIS IS AN ERROR");
}
This, however, always prints false. Even if I insert my own (correct) IBAN, it also gives false.
Does anyone know how to use this Apache IBANCheckDigit? Any advice is appreciated!
source
share