title: create an exit button in java?
body: <p>I'm a beginner in java, I'm practicing a Project that have should create an exit button that exit the program when we press it. But when I run this project in JDK the exit button is not working.</p>
  
  <p>How can I make exit button work?</p>