Skip to content

Instantly share code, notes, and snippets.

@technoAl
Created March 1, 2021 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save technoAl/64194fda28fabde27e819a4262d619b8 to your computer and use it in GitHub Desktop.
Save technoAl/64194fda28fabde27e819a4262d619b8 to your computer and use it in GitHub Desktop.
public class Point {
private int xCoordinate;
private int yCoordinate;
public Point(int x, int y){
this.xCoordinate = x;
this.yCoordinate = y;
}
public int getxCoordinate() {
return xCoordinate;
}
public void setxCoordinate(int xCoordinate) {
this.xCoordinate = xCoordinate;
}
public int getyCoordinate() {
return yCoordinate;
}
public void setyCoordinate(int yCoordinate) {
this.yCoordinate = yCoordinate;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment