android - Validate IBAN using org.apache.commons.validator -


in android project have edittext user can insert iban

i validate iban this, using org.apache.commons.validator

ibancheckdigit ibancheckdigit = new ibancheckdigit(); boolean validiban = ibancheckdigit.isvalid(textiban.gettext().tostring()); 

but 'isvalid" returns true when write things "jjjhh" or "asdasd" there better way validate iban ?

ibancheckdigit not check format of iban number, check digits. iban length, structure, etc. you. alternative, use iban4j validates structure, length, etc. too.


Comments

Popular posts from this blog

ios - Is 'init' forbidden as *part* of a variable name? -

file - Python: AttributeError: 'str' object has no attribute 'readlines' -

c# - Get the Class name in a class with atribute inside a attribute method -