Complete the following program that computes the distance between points (x1, y1) and (x2, y2).
According to the Pythagorean theorem, the distance is √((x1-x2)^2 + (y1-y2)^2).
public class Distance {
public static void main(String[] args) {
double x1 = 3;
double y1 = 4;
double x2 = 4;
double y2 = 4;
// Compute the distance between the two points
double distance = Math.sqrt(Math.pow((x1 - x2), 2) + Math.pow((y1 - y2), 2));
System.out.print("Distance: ");
System.out.println(distance);
}
}