Question: Alter the circle class provided here to include a compareTo method. Make any other changes you need to the class, but DO NOT change the
Alter the circle class provided here to include a compareTo method. Make any other changes you need to the class, but DO NOT change the toString method (or your output will be wrong). Add code to the main method as specified. Follow the directions in comments.
import java.util.Scanner;
public class Lab7Num1
{public static class Circle implements comparable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
