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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!