Welcome to the Treehouse Community
Looking to learn something new?
Sean M7,344 Points
Java: Design the UI
I was wondering if somebody could clarify what the catch (IOException) section.
Trent Christofferson18,585 Points
In your promptAction method you ask for user input and in Java anything IO throws an exception, I believe. In the javadocs it says the readLine method can throw an exception "If an I/O error occurs". For more info on why it may throw an exception look at this stackoverflow post: https://stackoverflow.com/questions/2629649/java-what-are-ioexceptions-in-bufferedreaders-readline-for