Question: how to find the distance between two points in java?
Answer: class DistanceBwPoint. { public static void main(String args[]) x1=Long. parseLong(args[0]); x2=Long. parseLong(args[2]); y2=Long. parseLong(args[3]); dis=Math. sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1));