I have an assignment for my computer science class. I have put everything I need in the code, however I can not figure out how to debug it. I am getting 8 errors, however I need these fixed without taking out important code.
import java.awt.*;
import java.io;
import java.lang.Object.*;
import java.util.Scanner;
import java.lang.Math;
public class Circle()
{
public double xCor;
public double yCor;
public double r;
public circle()
{
xCor = 5.0;
yCor = 5.0;
r = Math.PI;
}
public static void main(String args[])
{
public circle(double a, double b, double c)
{
xCor = a;
yCor = b;
r = c;
}
Circle c1 = new Circle();
Circle c2 = new Circle(1.0, 3.0, 2.0);
c1.x = c1.x + c1.R;
c2.R = 1.0 + c2.y;
c1.R = 2.0;
double n;
n = c1.getArea();
System.out.println(“Circle1’s area is “ + n);
System.out.println(“The area of a circle with radius 3 is:”);
calcAreaForThisRadius(3);
}
public double getArea()
{
return Math.PI * r * r;
}
public static calcAreaForThisRadius(double radius)
{
return radius * radius * Math.PI;
}
}
}