Created
February 23, 2022 19:34
-
-
Save rubykv/444e619e1767fed0eef250ea557bbe97 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package start; | |
public class Location { | |
double x; | |
double y; | |
public Location() { | |
} | |
public Location(double x, double y) { | |
this.x = x; | |
this.y = y; | |
} | |
public double getX() { | |
return x; | |
} | |
public double getY() { | |
return y; | |
} | |
public boolean isXFound() { | |
return x > 2.1 && x < 2.3; | |
} | |
public boolean isYFound() { | |
return y > 3.0 && y < 3.4; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment