I explained how this should be done in post #4. You can name the method what you like; I don't have to like it. Reread Post #4 and let me know what you don't understand or can't code to make that...
Type: Posts; User: GregBrannon
I explained how this should be done in post #4. You can name the method what you like; I don't have to like it. Reread Post #4 and let me know what you don't understand or can't code to make that...
If the point class must have a 'distance' method, then ifs signature should be:
// this method returns the distance from point1 to point2 by calling point1.distanceTo( point2 )
public double...
Are you getting errors? If so, post them. Is the program compiling and running but not working as you'd hoped? Then post sample runs and describe how the run does not meet the requirements.
...