arturmkrtchyan / iban4j

A Java library for generation and validation of the International Bank Account Numbers (IBAN ISO_13616) and Business Identifier Codes (BIC ISO_9362).
http://iban4j.org
Apache License 2.0
271 stars 124 forks source link

implemented number padding #56

Open StephanRichter opened 5 years ago

StephanRichter commented 5 years ago

Hey!

I noticed (for german IBANs) your sample would fail, if the bank code is shorter as required by the corresponding BBAN strcuture.

Thus, I implemented a zero-padding for all digit-type fields.