Hi,
Hi,
I am making a small Bank program and in that I am making a class called AccountNumberMaker which looks something like this:
public class AccountNumberMaker{
private int nextAvailableAccountNumber = 100009;
}
public int nextAccountNumber() {
nextAccountNumber++
}
I need to know how to make all the accounts numbers 6 digits long not more and not less than 6 also the first digit should not be be zero and also (first_digit +last_digit )%10 should be zero. How to do this in Java I am so confused. Any Help will be appreciated.
Thanks
Daisy