Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Eric Lei
- public class TestPoint
- {
- public static void main()
- {
- Point point1 = new Point(5, 7);
- Point point2 = new Point(8, 9);
- System.out.println("Point1: " + newPoint1);
- System.out.println("Point2: " + newPoint2);
- System.out.println("Distance: " + getDistance(point1, point2));
- System.out.println("Midpoint: " + getMidpoint(point1, point2));
- }
- }
Add Comment
Please, Sign In to add comment