title: JAVA- NETBEANS- Returning a method with code
body: <p>first post here!</p>
  
  <p>So I have this bit of code:</p>
  
  <pre><code>    static boolean getInternationalCalls() {
      Scanner intercalls = new Scanner(System.in);
      System.out.println("Would the customer like International Calls to be included within their minutes?");
      System.out.println("If yes, please enter Y, if no please enter N below.");
  
      Scanner scanner = new Scanner(System.in);
  
      if (scanner.next().equalsIgnoreCase("Y") || scanner.next().equalsIgnoreCase("yes")) {
          System.out.println("Internatinal Calls will be included");
      } else if (scanner.next().equalsIgnoreCase("N") || scanner.next().equalsIgnoreCase("no")) {
          System.out.println("International Calls will not be included");
      } else {
          System.out.println("Invalid character, please enter Y or N");
  
      }
  </code></pre>
  
  <p>Confused myself and dunno how to write it's return statement</p>
  
  <p>Returning it to:</p>
  
  <p>boolean interCalls = getInternationalCalls();</p>
  
  <p>Thanks in advance! :)</p>