Skip to content

This is a Java-based Product Management System that allows you to manage a list of products. You can add, retrieve, delete, and filter products based on various criteria such as name, place, warranty, and more. The system is designed to be simple and easy to use.

Notifications You must be signed in to change notification settings

srinivas6303/Product-Management-System-LIST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Product Management System - List

This is a Java-based Product Management System that allows you to manage a list of products. You can add, retrieve, delete, and filter products based on various criteria such as name, place, warranty, and more. The system is designed to be simple and easy to use.


Features

The system provides the following 8 methods to manage products:

  1. Add Product
    Adds a new product to the list.

    • Method: addProduct(Product product)
  2. Get All Products
    Retrieves and displays all products in the list.

    • Method: getAllProducts()
  3. Get Product by Name
    Searches for a product by its name and displays it.

    • Method: getProductByName(String name)
  4. Get Products by Place
    Filters and displays products based on their place (location).

    • Method: getProductByPlace(String place)
  5. Delete Product by Name
    Deletes a product from the list by its name.

    • Method: deleteProductByName(String name)
  6. Delete All Products
    Clears the entire list of products.

    • Method: deleteAllProducts()
  7. Out of Warranty Products
    Filters and displays products that are out of warranty based on the given year.

    • Method: outOfWarrenty(int year)
  8. Find Products by Substring
    Searches for products whose name, type, place, or warranty contains the given substring.

    • Method: findBySubString(String text)

Code Structure

The project consists of the following classes:

Product.java
Represents a product with attributes: name, type, place, and warranty.
Includes constructors, getters, setters, and a toString() method.

ProductServices.java
Contains the logic for managing the list of products.
Implements all 8 methods for adding, retrieving, deleting, and filtering products.

Main.java
Demonstrates the usage of the ProductServices class.
Adds sample products and calls various methods to showcase functionality.

How to Use

  1. Clone the Repository
    Clone this repository to your local machine using the following command:
    git clone https://github.com/your-username/product-management-system.git
    

Screenshot 2025-01-31 173208 Screenshot 2025-01-31 173118 Screenshot 2025-01-31 173140

About

This is a Java-based Product Management System that allows you to manage a list of products. You can add, retrieve, delete, and filter products based on various criteria such as name, place, warranty, and more. The system is designed to be simple and easy to use.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages