PRODUCT MANAGEMENT
Create an Application that allows user to Store the details about products (Product ID, Name, Price, Quantity) in a file.
Give the user the functionality to:
- View all the products stored.
- Search a product by ID or name.
- Sort the products by Price or ID.
- Update a Product stored in the file based on ID.
- Remove a Product from the file based on ID.
Business Rule:
- No two products can have the same ID.
- Price & Quantity for the product cannot be less than Zero. Implement User Defined Exception for enforcing this business requirement.
- All the member attributes of product class should have 'private' access modifier, implement properties to access the attributes.
Implement the concept of Object Orientation, File Handling, Exception Handling and Collections API.
For any doubt / query post the same here for general discussion.
Regards,
Shoaib R Khan
Enterprise Java Architect
Global Engineering Center