title: Syntax error, insert "EnumBody" and "enum Identifier" in java
body: <p>im cant figure out what is wrong with my code if someone can help , why is it telling me this ? it gives me an error in toString method... why does it give me to insert enum body and identifier ? thank you </p>
  
  <pre><code>  import java.lang.String;
  
    public class Circle extends Shape {
    private double radius;
  
    public Circle( double theRadius ){
      super();
      if ( theRadius &lt;= 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 &lt;= 0 )
          return;
      this.radius = theRadius;
  }
  
  @Override
  public double getPerimeter() {
      // TODO Auto-generated method stub
      return 0;
  
  
  
       public String toString() {
           return "Circle Surface Area "+getSurfaceArea()+", Circle Peremeter "       +getPerimeter();
       }
  }
  
  @Override
  public double getSizeAmount() {
      // TODO Auto-generated method stub
      return 0;
  }
     }
  </code></pre>
  
  <p>main class</p>
  
  <pre><code>import javax.swing.JOptionPane;
   import java.text.DecimalFormat; 
  
  
  
   public class ShapeApp {
  
  
  public static &lt;RectangularPrism&gt; void main(String[] args) {
  
  
  
      int x = 0;
      Triangle triangleObjects[] = new Triangle[ 3 ];
  
      triangleObjects[ 0 ] = new Rectangle("3.5","4.6");
      triangleObjects[ 1 ] = new Rectangle("3","2");
  
      triangleObjects[ 2 ] = new Circle(0);
  
      System.out.println( "List of all Shapes:\n" );
      do{
      try{
          for( Triangle currentTriangle : triangleObjects ) {
          String msg = currentTriangle.getSurfaceArea() +","+ currentTriangle.getPerimeter();
          JOptionPane.showMessageDialog(null, "Message", msg, JOptionPane.INFORMATION_MESSAGE);
          x=2;
      }
  
      }catch(Exception e) {
  
      }
  
  }while(x==1);
  
  
      }
  
  
  }
  </code></pre>
  
  <p>error</p>
  
  <pre><code>  Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
  Syntax error on token "String", @ expected
  Syntax error, insert "enum Identifier" to complete EnumHeaderName
  Syntax error, insert "EnumBody" to complete BlockStatement
  
  at Circle.getPerimeter(Circle.java:44)
  at ShapeApp.main(ShapeApp.java:80)
  </code></pre>