The public class is already given (this is a HW) and all I need is to write the method that draws the unfilled circle.
The given public static is the following
char kreis(char zf, int xM, int yM, int r, char z)
and the middle point is (xM; yM) and of course the radius is (r) . And the equation given is this.
(x-xM)^2+(y-yM)^2 = r^2
However, here is why I can't figure out how to do it: I need to write r^2 in java as r*r but also I'm instructed to use the "squareroot" through "Math.sqrt" and I'm confused as to what's the purpose of the square root?