Question: Write a JAVA application (class name: Circle) that reads the radius of a circle and prints its area (A=R2) and its circumference (2R). Display both
Write a JAVA application (class name: Circle) that reads the radius of a circle and prints its area (A=R2) and its circumference (2R). Display both results with only 2 decimal places. Hint: use the pow () method and the PI attribute from the Math class Hint: Use the DecimalFormat class from java.text.DecimalFormat
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
