title: java, need to pause program for 0.5 sec
body: <p>so I'm making the "Simon game" and I need a java code to pause the program for 0.5 sec to show to the user the buttons he needs to press on. </p>
  
  <pre><code>  greenButton.setBackground(Color.GREEN);
               //need to stop here
               press = true;
  </code></pre>