In this video we build upon the code implemented in part 2 of the Text-based menu system series of videos by adding user input validation through the Keyboard java class. We also, replace the three arrays used to store menu data with a much more flexible ArrayList of MenuItem objects. Using an array of MenuItem objects has some knock-on effects on the displayMenu method and the conditional block code in the main menu loop, so we modify those to make the code more modular.

Part 1: https://youtu.be/vDGqXJNXQu0

Part 2: https://youtu.be/lcWV7hLYByk

User input validation using the Keyboard class: https://youtu.be/Vs2ZR7-LJO0

ArrayList Introduction: https://youtu.be/_-MJ4aOyoz0

Stephen Sheridan