I want to calculate the distance between two points in Java
问题 OK, so I've written most of a program that will allow me to determine if two circles overlap. I have no problems whatsoever with my program aside from one issue: the program won't accept the code I've written for the distance between the two center points. I can figure out the if/else logic to tell the user what happens depending on the value of distance later, but I want to know what's wrong now. Eclipse, the program I'm coding on, is telling me that distance should be resolved to an array,