Skip to content

Instantly share code, notes, and snippets.

@rubykv
Created February 23, 2022 19:34
Show Gist options
  • Save rubykv/444e619e1767fed0eef250ea557bbe97 to your computer and use it in GitHub Desktop.
Save rubykv/444e619e1767fed0eef250ea557bbe97 to your computer and use it in GitHub Desktop.
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