I was looking for a java method to validate belgian iban number using the following algorithm:
-Check that the total IBAN length is 16. If not, the IBAN is invalid
-Move the four initial characters to the end of the string
Replace each letter in the string with two digits, thereby expanding the string, where A = 10, B = 11, ..., Z = 35
-Interpret the string as a decimal integer and compute the remainder of that number on division by 97
-If the remainder is 1, the check digit test is passed and the IBAN might be valid.
also there should be some general checks as the string is valid, only contains letters and digits and no special characters.. etc
i am not able to figure out how to move initial four characters to the end replace letters in string as mentioned above..