Skip to content

Instantly share code, notes, and snippets.

@13andrew13
Created January 30, 2017 16:25
Show Gist options
  • Save 13andrew13/305b3019a5bae164d409edafbacfb8a3 to your computer and use it in GitHub Desktop.
Save 13andrew13/305b3019a5bae164d409edafbacfb8a3 to your computer and use it in GitHub Desktop.
package task2;
/**
* Created by andrew on 26.01.17.
*/
public class Point {
private final double x;
private final double y;
public Point(double x , double y){
this.x = x;
this.y = y;
}
public double getX() {
return x;
}
public double getY() {
return y;
}
@Override
public String toString() {
return "x = "+ x+ " y ="+y;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment