How do you use Math.PI
I'm getting the error message: "illegal start of expression" and it's pointing to public void area() import java.util.Scanner; abstract class Shape { int width; abstract void area(); } //your code goes here class Square extends Shape { Square(){ public void area(){ int Sq_answer = x*x; System.out.println(Sq_answer); } } } class Circle extends Shape { Circle(){ public void area(){ Double Cir_answer = Math.PI*y*y; System.out.println(Cir_answer); } } } public class Program { public static void main(String[ ] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); Square a = new Square(x); Circle b = new Circle(y); a.area(); b.area(); } }