计算xy的最近值. 代码如下: package Day05; import java.util.Arrays; public class FindNearestPoints { public static void main(String[] args) { double[][] points = { {-1, -3}, {-1, -1}, {1, 1}, {2, 0.5}, {2, -1}, {3, 3}, {4, 2}, {4, -0.5} }; double minDistance = d…