GitHunt
YO

yogeshkumarsaini/Shopping-List-Storage

A console-based Shopping List Manager built in Java that allows users to add, search, sort, and categorize shopping items, track purchased items, calculate total cost, and store data using file handling.

๐Ÿ›’ Shopping List Storage System

A console-based Shopping List Manager built using Java.
This application helps users manage their shopping items, track expenses, and store data using file handling.


๐Ÿš€ Features

  • โž• Add shopping items
  • ๐Ÿ“‹ View shopping list
  • ๐Ÿ” Search items
  • โœ๏ธ Edit item quantity
  • ๐Ÿ”ค Sort items alphabetically (Aโ€“Z)
  • ๐Ÿ“‚ Categorize items (Groceries, Electronics, etc.)
  • โœ” Mark items as purchased
  • ๐Ÿงน Delete all purchased items
  • ๐Ÿ“Š Show total items count
  • ๐Ÿ’ฐ Calculate total shopping cost
  • ๐Ÿ’พ Save & load data from file

๐Ÿงฑ Technologies Used

  • Java
  • OOP (Object-Oriented Programming)
  • ArrayList Collection
  • File Handling (BufferedReader & BufferedWriter)
  • Exception Handling
  • Menu-driven Console UI

๐Ÿ“ Project Structure

ShoppingList/
โ”‚
โ”œโ”€โ”€ ShoppingItem.java # Model class for items
โ”œโ”€โ”€ ShoppingListManager.java # Business logic & file handling
โ””โ”€โ”€ Main.java # User interface & menu system


โ–ถ How to Run

  1. Open the project in any Java IDE (IntelliJ, Eclipse, VS Code)
  2. Compile all files
  3. Run Main.java

๐Ÿ“ Data Storage

The shopping list is saved in:

shopping_list.txt

Each line format:

ItemName,Quantity,PurchasedStatus,Category,Price

๐Ÿ“ธ Sample Menu

===== SHOPPING LIST MENU =====

1. Add Item
2. View List
3. Search Item
4. Edit Quantity
5. Sort Aโ€“Z
6. Show Items by Category
7. Delete Purchased Items
8. Show Total Item Count
9. Show Total Cost
10. Save List
11. Exit