// The method Mid_point of this class is to be used in the main // method of class2.java. So please read class2.java // especially the comments in the beginning of the file. import Geometry.Point; class class1 { public static Point Mid_point(Point P, Point Q) { double mid_x = (P.getX() + Q.getX())/2; double mid_y = (P.getY() + Q.getY())/2; return (new Point(mid_x,mid_y)); } }