This is a simple Java-based e-commerce management system developed for a school project. It demonstrates essential programming concepts, including object-oriented design, user interaction, and dynamic data handling.
The main file for the project contains:
- Product Class: Represents a product with attributes like name, ID, and price.
- Interactive System Logic: Allows users to add, retrieve, and manage product details.
- Console-Based Interface: Facilitates user interaction.
- Product Management: Add, view, and manage products by name, ID, and price.
- Interactive Console: Provides a user-friendly text-based interface.
- Dynamic Data Storage: Uses an
ArrayListto manage products efficiently. - Object-Oriented Design: Encapsulates product details and logic in reusable classes.
Ensure Java is installed on your system by checking the version:
java -versionCompile the Java file using:
javac ECommerce.javaRun the compiled program:
java ECommerce- Launch the program in your terminal.
- Follow the prompts to:
- Add Products: Enter product name, ID, and price.
- View Product Details: Retrieve details by name or ID.
- Exit the Program: End your session when done.
- Java: The programming language used.
- Scanner: For user input.
- ArrayList: For storing and managing product data dynamically.
If you'd like to run this code directly in your browser, click the link below :)