Informatikks1/Punkt.java

16 lines
224 B
Java

public class Punkt
{
double x;
double y;
public Punkt( double _x, double _y)
{
x = _x;
y = _y;
}
public String toString() {
return "(" + x + "| " + y + " )";
}
}