This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
sortroutines/Data.java

31 lines
410 B
Java

public class Data
{
private double x;
private double y;
public Data(double x,double y)
{
this.x=x;
this.y=y;
}
public double getX()
{
return x;
}
public double getY()
{
return y;
}
public boolean equals(Data otherData)
{
if (x==otherData.getX() && y==otherData.getY())
return true;
else
return false;
}
}