Complete the following function that computes the length of a line segment with end points (x1, y1) and (x2, y2). According to the Pythagorean theorem, the length is √(x1 - x2)2 + (y1 - y2)2.

Complete the following file:

Lines.java

public class Lines { /** Computes the length of a line segment @param x1 the x-coordinate of the starting point @param y1 the y-coordinate of the starting point @param x2 the x-coordinate of the ending point @param y2 the y-coordinate of the ending point @return the length of the line segment joining (x1, y1) and (x2, y2) */ public double segmentLength(double x1, double y1, double x2, double y2) { // your work here . . . } }