Fehler in System.out.println

Gibt es einen Fehler im folgenden Code? Es zeigt an, dass das Symbol nicht gefunden werden kann. Im Protokoll werden viele Fehler angezeigt, einschließlich

java.lang.ClassFormatError: Methode "" im Klassenbereich hat ungültige Signatur "(Ljava / lang / Object;) Ljava / lang / System $ out $ println;"

import java.util.*;
class Area
{
double pi=3.14;
Scanner sc=new Scanner(System.in);
System.out.println("Enter the value of r");
int r=sc.nextInt();
System.out.println("enter the value h");
int h=sc.nextInt();
void areaOfCircle()
   {
     double area1=pi*r*r;
     System.out.println("area of circle="+area1);
   }
void areaOfCylinder()
   {
     double area2=2*pi*r*(r+h);
     System.out.println("area of cylinder="+area2);
   }
public static void main(String args[])
   {
     Area a=new Area();
     a.areaOfCircle();
     a.areaOfCylinder();
   }
}

Antworten auf die Frage(5)

Ihre Antwort auf die Frage