//********************************************
// distanceOfTwoPoint.java Author: Jayson
//*******************************************
import java.util.Scanner;
public class distanceOfTwoPoint
{
//-----------------------------------------
// input two point's coordinate.
// then calculate their distace
//----------------------------------------
public static void main(String[] args)
{
double x1, y1, x2, y2, distance;
Scanner scan = new Scanner(System.in);
System.out.println("Please input two point's coordinate");
x1 = scan.nextDouble();
y1 = scan.nextDouble();
x2 = scan.nextDouble();
y2 = scan.nextDouble();
scan.close();
distance = Math.sqrt(Math.pow(x2-x1, 2)+Math.pow(y2-y1, 2));
System.out.println("Their distance is: " + distance);
}
}