I can't pass hidden test. What's the problem?
import java.util.Scanner; abstract class Shape { int width; abstract void area(); } public class Square extends Shape { public Square (int w) { width = w; } @Override public void area() { System.out.println(width * width); } }; public class Circle extends Shape { public Circle (int w) { width = w; } @Override public void area() { System.out.println(Math.pow(width, 2) * Math.PI); } }; 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(); } }