public void setYint value y value public double getY ret

public void setY(int value) { y = value; }

  public double getY() { return y;}

// write your distanceTo method as if it is here

}

Solution

Answer:

public void setY(int value) { y = value; }

  public double getY() { return y;}

// write your distanceTo method as if it is here

public double distanceTo(int x1, int y1){
       return Math.sqrt(Math.pow(x-x1,2) + Math.pow(x-x1,2));
   }

}

public void setY(int value) { y = value; } public double getY() { return y;} // write your distanceTo method as if it is here }SolutionAnswer: public void setY(

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site