(a) Write a method called randomColor that creates and returns a Color object that represents a random color.
(b) Write a method called drawCircle that draws a circle based on the method’s parameters: a Graphics object through which to draw the circle, two integer values representing the (x, y) coordinates of the center of the circle, another integer that represents the circle’s radius, and a Color object that defines the circle’s color. The method does not return anything.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here