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);
}
}
Answers
Answered by
2
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);
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);
tinkertweet:
can u please give me this program in bluej format
Answered by
0
Answer:
shudisnyr74ssti5os5o5sosso55osi4zo5s
Similar questions