and the corresponding class files are put in the same directory.
As per the assignment -
AutoInventory is the class for internal data inventory.
AutoInventoryCmdLineInterface is the class implementing the command line interface
ProcessAutoInventory is the main entry point.
1. Please download and extract the zip file from the link given earlier.
2. Open command and move to the extracted folder having the files.
For example - cd "c:\New Folder"
3. Execute the ProcessAutoRecovery class and provide inventory text file as an argument.
For example - java ProcessAutoRecovery "c:\New Folder\autoInventory.txt"
After this the options are same as before.
interfaces can be used for reducing the tight dependencies between entities. For example , when designing inventory system , ProcessAutoRecovery class is having a dependency on AutoInventoryCmdLineInterface. Instead of this we can introduce an interface which AutoInventoryCmdLineInterface and any other user interfaces will implement (e.g.- GUI). ProcessAutoRecovery can depend on this interface than directly depending on the implementation classes.