public class WaterTable { double howMuchWater; double distanceFromGround; public boolean isGood() { return this.howMuchWater > 1000000 && this.distanceFromGround < 100; // if (this.howMuchWater > 1000000 && this.distanceFromGround < 100) { // return true; // } else { // return false; // } } }