A menu-driven, Object-Oriented Multiplication Table Generator built using Java.
This project allows users to generate multiplication tables with custom ranges, view history of generated tables, and handles invalid inputs gracefully.
Perfect for Java beginners to practice OOP, collections, loops, and exception handling.
- π’ Generate multiplication tables for any number
- π Custom range support (e.g., 1β10, 1β20, or any user-defined range)
- π Stores table history using
List - π§± Fully Object-Oriented design
- π§ Menu-driven console interface
- π« Exception handling for invalid inputs
- β» Generate multiple tables in one run
MultiplicationTableGenerator/
β
βββ MultiplicationTable.java // Model class
βββ TableService.java // Business logic & history
βββ MainApp.java // Menu-driven UI
βββ README.md
- Java (Core)
- OOP Concepts
- Java Collections (
List,ArrayList) - Exception Handling
- Console-based UI
- Clone the repository:
git clone https://github.com/yogeshkumarsaini/multiplication-table-generator.git
- Compile the program:
javac MainApp.java
- Run the program:
java MainApp
1. Generate Table
2. View History
3. Exit
- Classes & Objects
- Encapsulation
- Separation of concerns
- Loops (for, while)
- Conditional statements
- Exception handling (try-catch) -User input using Scanner