Shapes problem in java
So this is my code: import java.util.Scanner; abstract class Shape { int width; abstract void area(); double k=Math.PI; double arie; } //your code goes here class Square extends Shape { Square(int x){ this.width=x; } public void area(){ int arie2=width*width; System.out.println(arie2); } } class Circle extends Shape { Circle(int x){ this.width=x; } public void area(){ arie= width*width*k; System.out.println( arie); } } 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(); } } I cant figure out why it doesnt pass all the tests ( it doesnt pass a locked one ,test case 3) Any solutions?