Question: Write a Java method called areaCircle with the following requirements: areaCircle can only be called by other methods in the same Java class
Write a Java method called "areaCircle" with the following requirements:
- areaCircle can only be called by other methods in the same Java class file.
- It takes one double argument locally referred to as "radius".
- It returns the result of the expression as a double data type using the formula radius * radius * 3.14
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
