Write a class Circle.java from which we can instantiate a circle by giving
its radius and use it as is shown in the following program.
1 import java.util.Scanner;
2 public class Circles {
3 public static void main(String[] args) {
4 Scanner input = new Scanner(System.in);
5 System.out.print("Enter radius: ");
6 double radius = input.nextDouble();
7 input.close();
8 Circle myCircle = new Circle(radius);
9 double area = myCircle.getArea();
10 double perimeter = myCircle.getCircumference();
11 System.out.printf("Area: %.2f, Perimeter: %.2fn", area,
perimeter);
12 }