Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Product Manager

Java CI License: MIT


Overview

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.


Features

  • 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.

Requirements

  • Java Development Kit (JDK): Version 8 or higher
  • Command Line Interface: Terminal or Command Prompt to compile and run the application

Installation & Running

Follow these steps to get started:

  1. Clone the Repository:

    git clone https://github.com/N0Arxan/JavaProductManager.git
  2. Navigate to the Project Directory:

    cd JavaProductManager
  3. Compile the Application:

    javac Main.java
  4. Run the Application:

    java Main

Code Structure

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.

Contributing

Contributions are warmly welcomed! To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Make your changes and commit them (git commit -m 'Add some feature').
  4. Push your branch (git push origin feature/YourFeature).
  5. Open a pull request.

For suggestions or bug reports, please open an issue on GitHub.


Author

Arshan_Hz

About

Simple Java Client Manager

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages