ToString in java why is it still giving me an error ?

my program runs fine but we does it still give me an error in toString please help public class Circle extends Shape { private double radius; public Circle( double theRadius ){ super(); if ( theRadius <= 0.0 ) setRadius( Shape.DEFAULT_SIZE ); else setRadius( theRadius... show more my program runs fine but we does it still give me an error in toString

please help


public class Circle extends Shape {
private double radius;

public Circle( double theRadius ){
super();
if ( theRadius <= 0.0 )
setRadius( Shape.DEFAULT_SIZE );
else
setRadius( theRadius );
}



public double getSurfaceArea(){

return this.radius * this.radius * Math.PI;
}

public double getPeremeter(){
;
return 2 * this.radius + Math.PI;
}

public double getRadius(){
return this.radius;

}

public void setRadius( double theRadius ) {
if( theRadius <= 0 )
return;
this.radius = theRadius;
}

@Override
public double getPerimeter() {
// TODO Auto-generated method stub
return 0;



public String toString() {
return String.format(
"Circle Surface Area ", "Circle Peremeter");
}
}

@Override
public double getSizeAmount() {
// TODO Auto-generated method stub
return 0;
}
}
4 answers 4