title: Though my boolean method returns true or false correctly, I can't use the return in main
body: <p>so my Boolean method runs and returns the correct true or false....but I need some sort of scanner function to get what was returned to follow into the if statements. here is my main code. any help is appreciated! also, my counter doesn't work :( I'm new.</p>
  
  <pre><code>import java.util.Random;
  import java.util.Scanner;
  
  public class CrapsP5 {
  public static void main(String[] args) {
  
      int number = 0, total, counter;
  
      total = counter = 0;
      String response;
      Scanner console = new Scanner(System. in );
      //1
      System.out.println("Would you like to play craps? (Y/N)");
      response = console.next();
      if (response.equalsIgnoreCase("N")) {
          System.exit(0);
      }
      //2       
      System.out.println("Welcome to craps. Would you like to see the rules? (Y/N)");
      response = console.next();
      if (response.equalsIgnoreCase("Y")) {
          rules();
      }
      //3 call play method
  
      play();
      //I need something here to act like the scanner console does?? yes?? but what?
      if (true) {
  
          System.out.println("Congrats! You've won!");
          counter++; //add 1 to win count (w) 
          total = counter;
          play();
  
      }
      if (false) {
          System.out.println("I'm sorry, you've lost.");
          System.exit(0);
      }
      //4
      System.out.println("Thanks for playing! You won " + total + " number of times before     losing.");
  </code></pre>