In Java I want to validate a account number for a bank which will be the input be the use.It should have the following fomat:
1)It should start with SB
2)After SB it should be followed by number 2011
3)followed by a 4 digit number.
4)It should not be greater than 10 digit
eg:SB20115789
1)It should start with SB
2)After SB it should be followed by number 2011
3)followed by a 4 digit number.
4)It should not be greater than 10 digit
eg:SB20115789
Comment