Question: Write a public class named PointXY with 2 private instance variables named x and y both of type int. You may add any other functionality
Write a public class named "PointXY" with 2 private instance variables named "x" and "y" both of type int. You may add any other functionality to this class you'd like including constructors, methods, and other instance variables.
Write a public method outside of PointXY (in the Problem Set class) named closest_7_15 that takes an ArrayList of PointXY as a parameter and returns the PointXY that is closest to the point (7,15). Use Euclidean distance for distance measurements
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
