sujana-kamasany / javacodes

A repository that will guide in making your first contribution.
29 stars 111 forks source link

Create ProductCatalog.java #156

Open tangorishi opened 11 months ago

tangorishi commented 11 months ago

Proposed Changes

This pull request introduces several enhancements and updates to the Product Catalog codebase. These changes aim to improve the functionality and maintainability of the catalog management system.

Details of Changes

  1. Feature: Added the ability to sort products by name.
  2. Update: Improved error handling for invalid inputs when querying prices.
  3. Fix: Corrected a bug that caused incorrect price display in the catalog.

How to Test

To validate the changes:

  1. Clone this PR branch locally.
  2. Run the program.
  3. Verify that products can be sorted by name.
  4. Test error handling by providing invalid input when querying prices.
  5. Ensure that the catalog displays correct prices.

Related Issues

This pull request addresses the following issues:

Screenshots (if applicable)

Include any relevant screenshots or images that showcase the changes made in this PR.

Additional Notes

Please provide any additional information or context that may be helpful for reviewers.

Checklist

Thank you for reviewing this pull request!