I am a bit stuck right here.

Next, we will be implementing a method named scale. It will be a mutator method for the class that can be used to change the size of the Circle. The signature line is done for you.

* Inside the scale method write the Java statement(s) necessary to change the Circle's radius so that it is scaleFactor times its old value.

# Next, implement the method named setRadius that does not return a value and which has one parameter for the new radius of the Circle.

Here is the code. Radius and Scalefactor are at the bottom.

Code:`public class Circle`

{

private double x;

private double y;

private double radius;

/**

* Default constructor for circles.

* The default circle is at (0,0) and radius of 1.

*/

public Circle()

{

x = 0;

y = 0;

radius = 1;

}

/**

* constructs circles

*

* @param initialX The initial X of the center.

* @param initialY The initial Y of the center.

* @param initialRadius The initial radius.

*/

public Circle(double initialX, double initialY, double initialRadius)

{

x = initialX;

y = initialY;

radius = initialRadius;

}

/**

* Accesses the X of the center point of the circle.

*

* @return the X of the center point

*/

public double getX()

{

return x;

}

/**

* Accesses the Y of the center point of the circle.

*

* @return the Y of the center point

*/

public double getY()

{

return y;

}

/**

* Accesses the radius of the circle.

*

* @return the radius

*/

public double getRadius()

{

return radius;

}

/**

* Computes the diameter of the circle.

*

* @return the diameter

*/

public double getDiameter()

{

return radius * 2;

}

/**

* Computes the area of the circle.

*

* @return the area

*/

public double getArea()

{

return Math.PI * radius * radius;

}

/**

* Computes the circumference of the circle.

*

* @return the circumference

*/

public double getCircumference()

{

double c = 2 * Math.PI * radius;

return c;

}

/**

* Changes the location of the circle. The new

* location is <b>relative</b> to the old.

*

* @param deltaX The distance in the X dimension that the circle is moved.

* More detailed explanation of deltaX.... blah blah blah.

* @param deltaY The distance in the Y dimension that the circle is moved.

*/

public void translate(double deltaX, double deltaY)

{

x = x + deltaX;

y += deltaY; // y = y + deltaY;

}

/**

* Changes the location of the circle. The new

* location replaces the old.

*

* @param newX The new X coordinate of the center.

* @param newY The new Y coordinate of the center.

*/

public void setCenter(double newX, double newY)

{

x = newX;

y = newY;

}

public void scale(double scaleFactor)

{

}

public void setRadius(double newRadius)

{

}

}