The Parts Manager program allows users to manage an inventory of parts. This Java program provides functionalities to add parts, update their quantities and prices, find specific parts by part number, and display the entire inventory in the console.
- Add predefined parts to inventory.
- Update exisitng part quantities and prices.
- Find a part by its parts number.
- Display all parts in the inventory.
- Instances: The program creates instances of the
Part
class to represent each part in the inventory. - Compound Data Structures: It utilizes a
HashMap
to store parts with their part numbers as keys and instances of thePart
class as values.
- Compile the program using a java compiler or use the command
javac src/*
in the terminal. - Run the
PartsManager
class in an IDE or use the commandjava -cp src PartsManager
in the terminal to see the program's functionality. - The program will automatically demonstrate adding parts, updating quantities and prices, finding parts, and viewing the updated inventory.