This video adds the ability to create menu items dynamically by reading items from an inventory text file. The inventory file uses a comma separated format to store menu items and their prices. A readInventoryFile method is developed to read the inventory file line by line and parse out the menu data in order to create MenuItem objects dynamically.
This allows the menu system to be completely flexible without changing a single line of code.
Related videos
Java Text File I/O Introduction: • Java Text File I/O Introduction
Part 1: • Text-based Menu Driven Program in Jav...
Part 2: • Text-based Menu Driven Program in Jav...
Part 3: • Text-based Menu Driven Program in Jav...
Auf dieser Seite können Sie das Online-Video Text-based Menu Driven Program in Java [Bonus Material] mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Stephen Sheridan 07 Mai 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 3,392 Mal angesehen und es wurde von 111 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!