This console based program is a Java-based Credit Card Validator that analyzes and verifies credit card numbers based on several industry standards like MII, IIN, and the Luhn algorithm (checksum). Perfect for learning about string manipulation, modular arithmetic, and real-world applications of Java.
🔹 Validates credit card number length (12 to 19 digits)
🔹 Identifies the Major Industry Identifier (MII)
🔹 Detects the Issuer Identification Number (IIN)
🔹 Extracts the account number from the credit card
🔹 Applies the Luhn algorithm to check if the credit card is valid
- String operations
- Control structures (
if-else) - Luhn Algorithm for checksum validation
- Substring parsing
- User input with
Scanner - Modular arithmetic
- Copy the code into a file named
CreditCardValidation.java - Compile the code using:
javac CreditCardValidation.java
- Run the program:
java CreditCardValidation
Make sure you're using a Java environment (JDK 8 or later recommended).
ENTER YOUR CREDIT CARD NUMBER
4929123456789012
YOUR MAJOR INDUSTRY IDENTIFIER IS Banking and Financial
Your Issuer Identification Number is VISA
Your Account Number is 345678901
4929123456789012 is a valid card
Made with ❤️ by Tushar Julka
This project is licensed under the MIT License. Feel free to use, modify, and share it.