title: Java simple if/else statement
body: <p>I am making a blackjack game and for some reason can't get the else statement to work. Can you correct this and explain correctly please?</p>
  
  <pre><code> {
      if (user.equalsIgnoreCase("next card"))
          b = ran.nextInt(1 + 9) + 1;
          y = x + c + b;
          System.out.println("You received " + b + " And together your cards equal " + y + " .");
      } else {
          System.out.println("You decided to stay.");
      }
  </code></pre>
  
  <p>OR
  <a href="http://prntscr.com/20rq6s" rel="nofollow">http://prntscr.com/20rq6s</a></p>