A credit card validator - java