Question: JAVA Help 1) Make an array of 4 circle objects, input the radii from a file. Then (using a loop) output the radius and circumference
JAVA Help
1)
Make an array of 4 circle objects, input the radii from a file. Then (using a loop) output the radius and circumference of each element in the array.
If your input file contains 0.7 2.15 0.8 3.5
Your output should be:
0.7 4.39822971502571
2.15 13.50884841043611
0.8 5.026548245743669
3.5 21.991148575128552
2)
Same as #1 (above), but this time create an ArrayList of Circles instead of an array.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
