Please answer my question immediately!!!Fasttt!! I have just typed a progarm of finding area and circumference of a circle but I am getting an error saying "missing
method body or declare abstract".Please explain what does it mean and please give me the correction I need to do in my program.Here's my program:
public class circle
{
public void getArea()
{
double radius=2.5;

double area=Math.PI*radius*radius;
double circumference=2*Math.PI*radius;
System.out.println("The area of the circle is "+area);
System.out.println("Its circumference is "+circumference);
}
}

1

Answers

2015-01-01T00:03:03+05:30
JButton1 Action Performed
double radius,circumference,area;
radius=Double.parseDouble(jTextField1.getText());
circumference=2*3.14*radius;
area=3.14*radius*radius;
jTextField2.setText(circumference);
jTextField3.setText(area);
0
can u please give me this program in bluej format