Ok, Nicholas, let me put it this way: The
getArea method uses two values to calculate the area:
Math.PI and
radius.
Math.PI is a constant value. So the only other value left that can change that will affect the calculation for the area of a circle is
radius. Are you tracking so far?
Can you find the specific line in your code where the variable
radius is getting assigned a value? When and how is this line executed? When you can answer these questions, then
you should be able to figure out how to get your code to calculate the area of any Circle with a given radius.
If you still can't answer these questions, then your problem is a lack of understanding of
Java language basics. Go to the
Java Tutorials and read up on the basics of classes, getters, setters, and working with variables.
(Note: Technically, there are two lines in your code where the variable
radius gets assigned a value. There is only one line where a value is
explicitly assigned. Find that line and you will find the answer)