help with java shapes challenge (the fifth official java challenge,more on classes module)
hey there. i tried to solve the fifth official challenge, for all the test cases it is correct but there is a locked case that i cannot see and incorrect. please help me, thank you. my code: import java.util.Scanner; abstract class Shape { int width; //const pi= Math.PI; public static void area(int width){ System.out.println(""); } } //your code goes here class Square extends Shape { Square (int x){ this.width =x; } public static void area (int width ){ int area = width*width; System.out.println(area); } } class Circle extends Shape { Circle (int y){ this.width =y; } public static void area (int r){ double radius=r; double area= radius*radius*Math.PI; System.out.println(area); } } 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(x); b.area(y); } }