Skip to content

Latest commit

 

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Inventory Management System

Student Name: Puneet Agarwal
Registration No.: 25BAI11166

Overview

A Java console application for managing products, stock, suppliers, prices, low-stock alerts, reports, and stock history.

Features

  • Add electronic and grocery products
  • View and search products
  • Update prices
  • Add and sell stock
  • Low-stock alerts
  • Supplier management
  • Inventory reports
  • Stock history
  • Delete products
  • Local file persistence
  • Reflection demonstration
  • Input validation and exception handling

Java Concepts

  • Inheritance: Electronic and Grocery extend Product
  • Encapsulation: private fields with validation methods
  • Collections: TreeMap and ArrayList
  • Exception Handling: LowStockException
  • Reflection: runtime field inspection
  • File I/O: local persistent data

Requirements

JDK 17 or newer. Check Java:

java -version
javac -version

Install, Compile and Run

  1. Clone the repository:
git clone <your-public-repository-url>
cd programming-in-java-project/InventorySystem_Puneet_Agarwal

From the project root:

javac -d out src\ims\*.java
java -cp out ims.Main

Compile and Run — Linux/macOS

javac -d out src/ims/*.java
java -cp out ims.Main

Testing

Run the application and test adding products, searching, changing prices, adding/selling stock, low-stock alerts, suppliers, reports, deletion, invalid inputs, and restarting the program to verify saved data.

Screenshots

  1. Main menu
image
  1. Product list image

  2. Inventory report

    image
  3. Add product

image

Project Structure

README.md
statement.md
InventorySystem/
├── src/
│   └── ims/
│       ├── Main.java
│       ├── Product.java
│       ├── Electronic.java
│       ├── Grocery.java
│       ├── Supplier.java
│       ├── Inventory.java
│       └── LowStockException.java
└── data/
    └── (created automatically)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages