Credit card validator in Java for Luhn algorithm.