title: Methods to accept parameters and return a boolean
body: <p>A bit lost here, nothing appears to be working. I have read back on the chapter about return methods and I just can't get it to work.</p>
  
  <p>Basically I have to create a method that accepts a Park paremeter, I have a class called park that has setters and getters for the booleans, picnic, playground, tennis and pool, which basically get declared as true or false if the Park has them. It also needs return a boolean value if the park has picnic and playground facilities.</p>
  
  <p>Here is what I have so far:</p>
  
  <p>The Park class:</p>
  
  <pre><code>public class Park {
  
      private String parkName;
      private int parkAcres;
  
      private boolean picnicFacilities;
      private boolean tennisCourt;
      private boolean playground;
      private boolean swimmingPool;
  
  
      public String getParkName() {
          return parkName;
      }
  
      public void setParkName(String parkName) {
          this.parkName = parkName;
      }
  
      public int getParkAcres() {
          return parkAcres;
      }
  
      public void setParkAcres(int parkAcres) {
  
          if (parkAcres &lt; 0 || parkAcres &gt; 400) {
              System.out
                      .println("You have entered an invalid acre amount, it has been defaulted to 0");
              parkAcres = 0;
          }
  
          this.parkAcres = parkAcres;
      }
  
      public boolean isPicnicFacilities() {
          return picnicFacilities;
      }
  
      public void setPicnicFacilities(boolean picnicFacilities) {
          this.picnicFacilities = picnicFacilities;
      }
  
      public boolean isTennisCourt() {
          return tennisCourt;
      }
  
      public void setTennisCourt(boolean tennisCourt) {
          this.tennisCourt = tennisCourt;
      }
  
      public boolean isPlayground() {
          return playground;
      }
  
      public void setPlayground(boolean playground) {
          this.playground = playground;
      }
  
      public boolean isSwimmingPool() {
          return swimmingPool;
      }
  
      public void setSwimmingPool(boolean swimmingPool) {
          this.swimmingPool = swimmingPool;
      }
  
  }
  </code></pre>
  
  <p>The exercise told me to create getters and setters for all of them, I haven't even got passed using one of them yet.</p>
  
  <p>Here is the ParkTest class which has the methods to use these getters and setters:</p>
  
  <pre><code>import java.util.Scanner;
  
  public class TestParks {
  
      static Park park1 = new Park();
  
      static String parkName;
      static int parkAcres;
      static boolean facilityCheck;
  
      public static void main(String[] args) {
  
          parkInfo(park1);
          request();
          System.out.println("Test: " + facilityCheck);
  
      }
  
      public static void parkInfo(Park park) {
          Scanner userInput = new Scanner(System.in);
  
          System.out.println("Enter the park name");
          parkName = userInput.next();
  
          System.out.println("Enter the size in acres");
          parkAcres = userInput.nextInt();
  
          park.setParkName(parkName);
          park.setParkAcres(parkAcres);
  
  
      }
  
      public static boolean request() {
          Scanner userInput = new Scanner(System.in);
  
  
          System.out.println("Do you want picnic facilities?");
          if(userInput.nextInt() == 1){
              park1.setPicnicFacilities(true);
              return true;
          }else{
              return false;
          }
  
  
  
      }
  
  }
  </code></pre>
  
  <p>I don't quite get what the exercise wants me to do, it is asking me to check if both facilities are available and return the value. Everything I have tried, the value just ends up false every time. The book taught me this back in a chapter but really, it only shows the use with int/double variable and not boolean, no idea if this makes a difference, either way I am completely lost on how to do return methods...</p>
  
  <p>Normally I would just prompt the user for what they want in the park, then use the setters to declare the booleans true, then use a simple if statement in a displayParkInfo() method using the getters to output the results to the console, it seems the task does not want me to do this though.</p>