import math.geom2d.Point2D;
import math.geom2d.line.Line2D;
public class Example {
public static void main(String[] args) {
Point2D point1 = new Point2D(2, 3);
Point2D point2 = new Point2D(5, 7);
Line2D line = new Line2D(point1, point2);
double length = line.getLength();
}
}