title: How to pause my Java program for 2 seconds
body: <p>I'm new to Java and making a small game for practice. </p>
  
  <pre><code>if (doAllFaceUpCardsMatch == false) {
          //run pause here//
          concentration.flipAllCardsFaceDown();
  } else {
          concentration.makeAllFaceUpCardsInvisible();
  }
  </code></pre>
  
  <p>I want to pause the game for two seconds here before it does</p>
  
  <pre><code>concentration.flipAllCardsFaceDown();
  </code></pre>
  
  <p>How would I go about pausing it?</p>