In the Mac environment, how do I shut down an application that has stopped responding?

In the Mac environment, how do I shut down an application that has stopped responding?

Click on the apple icon to the left of the menu bar and select Force Quit. Then select the application to stop.