Problem
1. You can exit a graphical program by calling System.exit(0). Describe how to provide an Exit button that functions in the same way as closing the window. Should you still call set Default Close Operation on the frame?
2. How would you add a counter to the program that prints how often the button has been clicked? Where is the counter updated?