Java Product Manager is a console-based application designed to simplify product and inventory management. This lightweight tool enables users to:
- Manage Products: Add, remove, and list products.
- Manage Inventory: Process product purchases and sales, as well as review current stock levels.
The menus and prompts are presented in both Catalan and Spanish, making it accessible for a bilingual audience.
- Product Management
- Add Product: Insert new products into your inventory.
- Remove Product: Delete products from your list.
- List Products: Display the names of all products.
- Stock Management
- Purchase (Compra): Increase a product’s stock.
- Sale (Venda): Decrease a product’s stock.
- List Stocks: Show the current inventory levels.
- User-Friendly Navigation: Enjoy a simple, intuitive menu system.
- Sentinel-Based Inventory: Uses a sentinel value (
-1) to mark the end of the product list.
- Java Development Kit (JDK): Version 8 or higher
- Command Line Interface: Terminal or Command Prompt to compile and run the application
Follow these steps to get started:
-
Clone the Repository:
git clone https://github.com/N0Arxan/JavaProductManager.git
-
Navigate to the Project Directory:
cd JavaProductManager -
Compile the Application:
javac Main.java
-
Run the Application:
java Main
The project is structured around a single main class, Main.java, which includes:
- Menu System: Methods to display menus and capture user input.
- Product Operations: Functions to add, remove, and list products.
- Inventory Operations: Functions to handle stock adjustments during purchases and sales.
- Utility Methods: Helper functions to manage the sentinel value and validate user actions.
Contributions are warmly welcomed! To contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature). - Make your changes and commit them (
git commit -m 'Add some feature'). - Push your branch (
git push origin feature/YourFeature). - Open a pull request.
For suggestions or bug reports, please open an issue on GitHub.
Arshan_Hz